ok, so fgets() parameters are:
fgets(string for the input, the limit for amount of input, input/output...etc...) ?
I'm sorry I couldn't word that any better.
PS, hk_mp5kpdw...your name...
Type: Posts; User: bgbfflochp
ok, so fgets() parameters are:
fgets(string for the input, the limit for amount of input, input/output...etc...) ?
I'm sorry I couldn't word that any better.
PS, hk_mp5kpdw...your name...
one last problem (I hope)...
I need to check the string for char values and put them into another string...that away I don't have any ints, doubles, etc...should the user type them in as part of...
*(pointer1 + strlen(string) -1) = '\0';
I got that line of code to work.
One more question though:
code:
fgets(string, sizeof(string), stdin);
First off, I would like to thank you for all the help so far...you've definitely helped me figure out how some things work/don't work.
I appreciate it.
code:
string[strlen(string)-1] =...
I changed my header file to the code in the link to see if it would even work.
Using my same driver as posted above...and the following new header file:
int palindrome(char *text) {
char...
Ok, I just figured it would take up too much space on the message boards.
The goal of this project is to test a sentence (inputted by the user) to be a palendrome or not. A palendrome is a...
If anyone has any free time whatsoever, I would love to email them my short program. I'm having a ton of trouble getting my strings and pointers to agree. I'll be glad to email them my goal for the...
I'm writing a program...and I don't fully understand strings and pointers at the moment.
I'm taking in a sentence from a user using the gets() function.
How can I determine how long the string...