Search:

Type: Posts; User: oogabooga

Search: Search took 0.02 seconds.

  1. Your question shows that you do not understand...

    Your question shows that you do not understand buffers. Since that is what your assignment is apparently about you should probably have learned about it, unless you're confused about having to use...
  2. This is more difficult than I thought. Your...

    This is more difficult than I thought. Your problem probably occurs after the first buffer is used up and you need to read the next one. But the buffer can end at any point, not just at the end of a...
  3. Forget the above code, it doesn't count processes...

    Forget the above code, it doesn't count processes properly. See the code below instead.

    Also, I figured out what was wrong with the operation of the strtok function. The buffer is not...
  4. As tater said, it's probably more common in this...

    As tater said, it's probably more common in this case to use sscanf. But you can stick with strtok if you wish.

    You weren't updating your i variable, so I changed your outer loop to add i and...
  5. But this can't be your whole program. There are...

    But this can't be your whole program. There are undeclared variables (delim, proc). I can't even compile it!

    BTW, do you really have to do this with strtok? It seems unusual. Also, do you really...
  6. Do you really mean tmpbuff[i] = status or do you...

    Do you really mean tmpbuff[i] = status or do you mean tmpbuff[i] == status, either way I'm not sure what's up with that. Could you post your whole program?
Results 1 to 6 of 6