Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char* printerError(char *s) {
- int errors, total;
- errors = total = 0;
- while (*s) {
- char c = *s++;
- total++;
- if (c < 'a' || c > 'm')
- errors++;
- }
- char* result;
- asprintf(&result, "%d/%d", errors, total);
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement