Hello,
I'm trying to implement strcpy(), strcmp(), strlen(), strcat()
and getline() in C.
I've already implemented the four str***() functions, but i'm having trouble getting
the getline() function. getline() is supposed to get a string value and then return the
ENTIRE string, not just the first word it sees.
For example, if I type:
Hello World I hate you
getline() should return the entire "Hello World I hate you" string, not just "Hello".
I've been working hard on this so please help. Also, why does my C compiler give me
warnings on my str***() functions? I think it's because I programmed the functions
as if it was in C++.
Thx, and here's my code.
I'm trying to implement strcpy(), strcmp(), strlen(), strcat()
and getline() in C.
I've already implemented the four str***() functions, but i'm having trouble getting
the getline() function. getline() is supposed to get a string value and then return the
ENTIRE string, not just the first word it sees.
For example, if I type:
Hello World I hate you
getline() should return the entire "Hello World I hate you" string, not just "Hello".
I've been working hard on this so please help. Also, why does my C compiler give me
warnings on my str***() functions? I think it's because I programmed the functions
as if it was in C++.
Thx, and here's my code.