Ah, I see what he was talking about now for lwr not being used. Looks like I just forgot to use the correct variable later. And yup, I'm using fgets now.
Anyhow, it seems I'm not defining lwr...
Type: Posts; User: tgp1994
Ah, I see what he was talking about now for lwr not being used. Looks like I just forgot to use the correct variable later. And yup, I'm using fgets now.
Anyhow, it seems I'm not defining lwr...
int execFunction(char *func) {
printf("Executing function \"%s\"...\n", func);
char lwr = lower(func);
Alright, I'll check out the FAQ for gets.
Thanks!
Excellent, thank you guys. In case anyone is curious, here is my fixed code:
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
char lower(char upper[]) {
char...
Hi everyone. I've just begun picking up C today (with the ultimate goal of using the SDL library). As I'm moving along here, I'm beginning to notice some "missing prototype" warnings, for functions...