- #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: 841
Latest pastes
10 hours ago
22 hours ago
23 hours ago
1 days ago
3 days ago