2

I have encountered a really confusing error that deals with the "GetString();" function. I tried to google what does this error message mean but haven't had any luck finding a solution. I don't think there is really any enormous errors in my current code for vigenere.c. The error is shown in the picture of the terminal below.

'GetString' is deprecated

Thanks for help in advance

5

From the What's new? in CS50 2017 document:

CS50 Library

To be more consistent with stylistic conventions in C, we’ve renamed the functions in the CS50 Library as follows:

GetChar is now get_char

GetFloat is now get_float

GetInt is now get_int

GetLongLong is now get_long_long

GetString is now get_string

The old spellings still work (for now!) but best to migrate your code to the new spellings

The old names have been deprecated in v99 of the IDE.

1
  • 1
    and just to clarify, "depricated" means that a function has been removed from C and will no longer be valid. ( The compiler is saying "Yes, I know it used to be valid, but not anymore." instead of saying "unrecognized".)
    – Cliff B
    Jul 14 '17 at 19:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .