fputs crashing in C on Mac with Xcode

Posted by Mark Szymanski on Stack Overflow See other posts from Stack Overflow or by Mark Szymanski
Published on 2010-04-03T03:12:09Z Indexed on 2010/04/03 3:23 UTC
Read the original article Hit count: 360

Filed under:
|
|
|

Hi, I have a command line app and have the code

chdir("/var");

FILE *scriptFile = fopen("wiki.txt", "w");

fputs("tell application \"Firefox\"\n activate\n",scriptFile);

fclose(scriptFile);

and when I run it in Xcode I get an EXC_BAD_ACCESS when it gets to the first fputs(); call

© Stack Overflow or respective owner

Related posts about mac

Related posts about c