Not printing outside of if statement
<p>I am making my own version of make. I allow for some arguments to be passed via command line.</p>

<p>I am working on it in chunks. I am setting the fileName right now</p>

<p>I have the following code</p>

<pre><code>int main(int argc, char *argv[]) {
    char *fileName = NULL;
    char fileFlag[2];

    strcpy(fileFlag, "-f");
    printf("%s\n", fileFlag);
    if (argc == 1) {
        fileName = (char *) malloc(sizeof("Makefile"));
        strcpy(fileName, "Makefile");
        printf("One arg %s\n", fileName);
    }
    printf("\n%s", fileName);
    return 0;
}
</code></pre>

<p>When it runs I get the following output.</p>

<pre><code>-f
One arg Makefile
</code></pre>

<p>Shouldn't it print another line?</p>