C file

B

Bill Cunningham

If K&R2' learning curve seems a bit steep to you (it expects you to have
some rudimentary programming knowledge) try one of the tutorials listed
below. Steve Summit's version is a bit more "gentle" than Tom Torf's.

<http://www.eskimo.com/~scs/cclass/>
Oh thanks Santosh yes this looks like a good tutorial from k&r2's pages.

Bill
 
J

Joe Wright

Bill said:
Two possible solutions include:
char input[100];
fgets(input, sizeof input, stdin);

This looks good.
or

char *cap;
size_t buffer_size = 100;
cap = malloc(buffer_size);
if (!cap) { /* no memory */ }
fgets(cap, buffer_size, stdin);
/* proceed */

This is totally incomprehensible to me. I recognize all the statements
but I don't know what they are saying because of my limited C knowledge.

Bill
Bill,

Perhaps you could explain some of your personal challenges: Memory,
learning and stuff. Using C as therapy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top