32 lines
608 B
C
32 lines
608 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
void parseH(char *p);
|
|
void parseL(char *p);
|
|
|
|
void testicolo(char *input, char *output) {
|
|
strcpy(output, input);
|
|
for (int a = 0; a < 1000; a++) {
|
|
parseH(output);
|
|
parseL(output);
|
|
}
|
|
}
|
|
|
|
void parseH(char *p) {
|
|
int ln = strlen(p);
|
|
for (int a = 0; a < ln; a++) {
|
|
if (p[a] < 123 && p[a] > 96) {
|
|
p[a] = p[a] - 32;
|
|
}
|
|
}
|
|
}
|
|
|
|
void parseL(char *p) {
|
|
int ln = strlen(p);
|
|
for (int a = 0; a < ln; a++) {
|
|
if (p[a] < 91 && p[a] > 64) {
|
|
p[a] = p[a] + 32;
|
|
}
|
|
}
|
|
}
|