Topic awaiting preservation: C programming - pointer arithemetic |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: QLD |
posted 04-09-2003 03:10
Hey i need help with using strcat(). I need to append a string to the end of anotehr string but always in the same place. Eg - i have a name and i need to append 'the bold' or 'the great' to the end of the name. But each timea loop comes round if a certain condition is meet i need to append a different 'the whatever', but it must overerite the previous thing. So i always needs to start say 1 place after the original name. Please if you know how to do it with strcat or another way please help. |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 04-10-2003 17:11
um... what? |
Maniac (V) Inmate From: soon to be "the land down under" |
posted 04-16-2003 23:35
I think I get the gist of what you're saying. Since you titled the subject "point arithmetic", we'll use that method. code: char *char_ptr;
|
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 04-21-2003 16:41
Let's assume the value you want to append to is in the variable name code: char * name_end;
|