Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //======== Função =========
- unPack(str1[], str2[])
- {
- for(new i ; str1{i}; ++i)
- {
- str2[ i] = str1{i};
- }
- return str2;
- }
- //======= [ Exemplo ] ========
- new
- inputStrng[11 char],
- outputString[12]
- ;
- inputStrng = !"Hello World";
- unPack(inputStrng, outputString);
- for(new i; outputString[ i]; ++i)
- {
- printf("%c", outputString[ i]); //não ocorre array index out of bounds
- }
- // Criado por Bruno da Silva
- // www.ips-team.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement