Timeline for How can I initialize a string and then set it to the null terminator?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:50 | history | edited | CommunityBot |
replaced http://cs50.stackexchange.com/ with https://cs50.stackexchange.com/
|
|
Jul 9, 2015 at 13:47 | comment | added | Richard | Thanks both! I ended up just setting up a temporary variable to the null terminator and pointing query to that if I didn't find the question mark. | |
Jul 9, 2015 at 13:47 | vote | accept | Richard | ||
Jul 9, 2015 at 6:26 | comment | added | curiouskiwi♦ |
In addition, notice that the distribution code said: char query[] = "TODO"; This should be a hint that you don't want to use a char*.
|
|
Jul 9, 2015 at 5:39 | history | answered | Cliff B | CC BY-SA 3.0 |