Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (c) 2012 [iPs]TeaM
- * Bruno da Silva (email@brunodasilva.com)
- * Cortar string e dividir estilo explode, split em C++
- *
- * www.brunodasilva.com
- * www.ips-team.forumeiros.com
- */
- char * parte;
- char string[] = "string|para|cortar"
- parte = strtok( string , "|");
- while ( parte != NULL ) {
- printf("%s cortada !!", parte);
- parte = strtok(NULL, "|");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement