- #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, ":");
- }
- }
Undefined
By: Guest | Date: Apr 28 2009 15:52 | Format: None | Expires: never | Size: 233 B | Hits: 905
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago