Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Bruno da Silva
- www.ips-team.blogspot.com
- */
- // Está função completa uma string com um determinado caracter:
- completarString(string[], caractere, size = sizeof(string))
- {
- for(new i = strlen(string); i != size; ++i)
- {
- format(string, size, "%s%c",string, caractere);
- }
- return string;
- }
- //Exemplo:
- new stringTeste[10] = "Teste";
- completarString(stringTeste, '@', sizeof(stringTeste));
- //Resultado:
- Teste@@@@@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement