- #include <stdio.h>
- #include <string.h>
- int main ()
- {
- char str[] = "username:password";
- char * pch;
- pch = strtok(str, ":");
- while (pch != NULL)
- {
- printf ("%sn",pch);
- pch = strtok (NULL, ":");
- }
- }

By: Guest | Date: Apr 28 2009 15:52 | Format: None | Expires: never | Size: 233 B | Hits: 1005
Latest pastes
5 months ago
7 months ago
22 months ago
24 months ago
28 months ago