- #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: 900
Latest pastes
1 days ago
1 days ago
2 days ago
3 days ago
5 days ago