Search:

Type: Posts; User: stephen101

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,408

    im a complete stranger to the tell and seek...

    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...
  2. Replies
    4
    Views
    1,408

    how to copy strings from mid way through

    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...
  3. Replies
    5
    Views
    998

    thank you for that damn you lot on here make c...

    thank you for that damn you lot on here make c look like ... eating cake
  4. Replies
    5
    Views
    998

    ok so strncpy worked its wonders but now i need...

    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...
  5. Replies
    5
    Views
    998

    while loop help

    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;
  6. Replies
    18
    Views
    4,011

    im actually clueless on how i am going to get the...

    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...
  7. Replies
    18
    Views
    4,011

    hmm this c involves alot of math with letters!! ...

    hmm this c involves alot of math with letters!!

    quite confusing to be honest
  8. Replies
    18
    Views
    4,011

    i replaced the special character for a 'R' just...

    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 =...
  9. Replies
    18
    Views
    4,011

    hmm unicode.. how can this be checked and what...

    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!
  10. Replies
    18
    Views
    4,011

    ok no ive got it i had changed it a couple of...

    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...
  11. Replies
    18
    Views
    4,011

    ok well i used the below line and then did a...

    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,...
  12. Replies
    18
    Views
    4,011

    mm ok thanks loads im going to give this a shot...

    mm ok thanks loads im going to give this a shot and see where i can get
  13. Replies
    18
    Views
    4,011

    thanks for the quick replies i have also got...

    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....
  14. Replies
    18
    Views
    4,011

    how to assign text to its own variable

    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...
Results 1 to 14 of 14