C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
how do i read the string in using fscanf ?
how do i pass my char array to the first function if i have it in main.
Code:# include<stdio.h> int main(void) { # include<stdio.h> int main(void) { int numlines; char stringline[200]; FILE *fin; fin = fopen("bigint.txt","r"); fscanf(fin, "%d", &numlines); //Read in how many lines there are fscanf(fin, "%s", &stringline); printf("stringline = %d\n", stringline); printf("%d\n", numlines); fclose(fin); system("PAUSE"); return 0; } }