im a complete stranger to the tell and seek functions
ive just done some research on both of them and didnt understand them well enough
could you shine some light please
i had though the...
Type: Posts; User: stephen101
im a complete stranger to the tell and seek functions
ive just done some research on both of them and didnt understand them well enough
could you shine some light please
i had though the...
hi all
i have used a combination of strchr and strncpy to get the string name so i could create the file. now i need to copy the contents of the file so i can put it into the file i had just...
thank you for that damn you lot on here make c look like ... eating cake
ok so strncpy worked its wonders but now i need to add a null character on the end
is there a way to do this without knowing the string length?
i could have just done headname[5]='\0';
but i do...
hi everyone
i am just struggling a little on my while loops
i want the loop to save the character so it can build up a name e.g.
char *pos = strchr(buffer, 'R');
int posa = pos-buffer;
im actually clueless on how i am going to get the filename as when i did
printf("pos is %s\n", pos);
it showed me all the text apart from the filename part at the start! so it either stored...
hmm this c involves alot of math with letters!!
quite confusing to be honest
i replaced the special character for a 'R' just because i wanted to see if it was working and... i had a set back of it not creating my file with the name. my code is below
char *pos =...
hmm unicode..
how can this be checked and what procedures should i take?
i am running ubuntu 10.04 in the UK if the keyboard makes any difference at all!
ok no ive got it
i had changed it a couple of times
heading had buffer stored within it but i thought its best to use buffer for now
because my compiler does not like me using accented...
ok well i used the below line and then did a printf showing me that it had worked and i had the the error message:
warning: multi-character character constant
char *pos = strchr(buffer,...
mm ok thanks loads im going to give this a shot and see where i can get
thanks for the quick replies
i have also got to keep an eye out for the future development of this program and because it will get to being sometimes more than and sometimes less than 5characters....
hello cboard!
i am hoping to gain knowledge in C more and more now that i have joint this forum
i am having a problem with one of my char variables (i know it will sound quite basic but i am more...