Original Post
Hi, I want to use fgets to read from stdin, so: fgets(str, MAXINT, stdin); however, I dont know the size of str in advance, so how do I define/alloc it ? Huge Thanks
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more