In the challenge at the end of Chapter 16 we’re asked to rewrite the “Coolness” project using NSString and NSLog. But I can’t seem to make it work. I also can’t find the documentation for readline().
NSLog(@"Who is cool?"); const char *cn = (const char *)readline(NULL); NSString *name = [[NSString alloc] initWithUTF8String:cn]; NSLog(@"%@ is cool?", name);