Initializacia

This commit is contained in:
Kozar 2024-10-02 17:27:29 +00:00
parent eccfb157bf
commit b5fbf7414e

View File

@ -28,7 +28,12 @@ char hacker_script(char l) {
void transform_to_hacker_script(const char *src, char *dest) { void transform_to_hacker_script(const char *src, char *dest) {
while (*src) { while (*src) {
*dest++ = hacker_script(*src++); if (isupper(*src)) {
*dest++ = tolower(*src);
} else {
*dest++ = hacker_script(*src);
}
src++;
} }
*dest = '\0'; *dest = '\0';
} }