Wow I didn't realize there were such advanced options for compiler warnings. Thanks you for the article, I will dive into this right away.
Another quick question about simple programming logic:
...
Type: Posts; User: NickDesigner
Wow I didn't realize there were such advanced options for compiler warnings. Thanks you for the article, I will dive into this right away.
Another quick question about simple programming logic:
...
That would be great - I'm using Xcode 3.
The C Programming Language Answers To Exercises
Thank you so much! It was in fact that missing i = 0; in copy() that was the problem. I'm running on a Mac so control-D is the EOF command. Now that I made that fix it works, but the funny thing...
Here is the code:
#include <stdio.h>
#define MAXLINE 1000
int getline(char line[], int maxline);
void copy(char to[], char from[]);
Hi everyone,
I'm stuck on section 1.9 in the K&R book.
My main problem is that I copied the code from the book verbatim and it's not printing the string for me. I'm not getting any errors...