Ask Experts Questions for FREE Help !
Ask
    martyr's Avatar
    martyr Posts: 1, Reputation: 1
    New Member
     
    #1

    Nov 3, 2003, 11:22 PM
    What is strtok function body?
    What is strtok function body?
    tadds's Avatar
    tadds Posts: 10, Reputation: 1
    New Member
     
    #2

    Nov 26, 2003, 07:56 AM
    Re: What is strtok function body?
    Here is an example of its use.
    Not sure of it is what you were looking for.
    -------------------------
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int main(void)
    {
      char buff[200], delim[50], *ptr;

      printf("Enter up to 175 characters to examine (s1): ");
      gets(buff);
      printf("Enter a string for the delimiter (s2): ");
      gets(delim);
      ptr = strtok(buff, delim);
      for (;;) {
         if (ptr == NULL) {
            break;
         }
         printf("\nptr = %s", ptr);
         ptr = strtok( (char *) 0, delim);     /* Note the null pointer */
      }
    }

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

TV Out Function On [ 0 Answers ]

I've got a DVD drive and the PowerDVD 5.0 player and every time I try to watch a newer DVD, I get the error message "TV out function error", I look at the details and it says I can't play copyright protected DVD's with the TVout function enabled. The weird thing is, ALL my graphics adapters just...

Multi-function Printers [ 6 Answers ]

As a computer illiterate geriatric septugenarian, I crave your help and advice. I have recently upgraded to Windows XP and am having trouble with both my Lexmark printer & my scanner. Having made the decision to replace the above, I would appreciate comments from those of you who have experience...

Trigonometric function [ 1 Answers ]

Please, I don't understand vector. I don't know how to solve or use it. :'( here are the question that I need help on. 1. Vector A points along the +y axis and has a magnitude of 100.00 units. Vector B points at an angle of 60.0 degrees above the + x axis and has a magnitude of 200.0 units....

Math function in vb [ 1 Answers ]

For 'Non intrinsic mathematical function" which library I have to insert/use ?


View more questions Search