Wednesday 15 September 2010

objective c - Xcode 6.1 console input/output -



objective c - Xcode 6.1 console input/output -

ok i've tried both ignoring , googling without luck.

i'm writing objective-c console application , have running:

#import <readline/readline.h> int main(int argc, const char * argv[]) { @autoreleasepool { char *input = readline("input data: "); // stuff input } homecoming 0; }

so problem i'm having when type input xcode console (showing 'target output') shows every given character twice.

input data: /*teststring becomes*/ tteessttssttrriinngg

for reason reads input starting bug me out... i've searched setting come dry... should perhaps mention haven't been using xcode much before, first course of study might simple i'm missing.

ok after google session found out working intended , programme works in terminal.

very annoying tho...

objective-c xcode console console-application

No comments:

Post a Comment