gmc:implemented toupper and gettime, but getting segfault when running