C: scanf

PC software and patches shared by the community: emulators, game fixes, utilities and tools, with versions and links.
Snwbrdr
Nouvel arrivant
Members
Posts: 3
Joined: Wed 16 Feb 2011 20:53

C: scanf

Post by Snwbrdr »

Automatically translated from French.

Beginner in C, I'm used to using the scanf function in most of my programs. In a recent program, I entered a wrong value and the program behaved very... Strangely :arff:

After some research on the internet, I learned that this function did not check these pointers. Which is surely the cause of the program execution failure. So:

Is Scanf a function that should not be used? :angel:

And how to replace it?

Hoping to have some answers :)
OKKO is SNWBRDR
User avatar
Oops
God Member
Members
Posts: 7083
Joined: Thu 2 Apr 2009 00:35
Wi-Fi: Oui
CFW Wii: Wii vendu
Type de DS: 3DS
Linker DS: R4i GOLD 3DS (r4ids.cn)
CFW PS3: ode a venir
Type PSP: Fat
Firmware PSP: 6.60 pro-B10
lecteurxbox: LiteOn
Firmware lecteur Xbox360: LT+3.0 rgh2 coolrunn
Dashboard: 3.775
Location: 17 et 95

Re: C: scanf

Post by Oops »

Automatically translated from French.

Snwbrdr
Nouvel arrivant
Members
Posts: 3
Joined: Wed 16 Feb 2011 20:53

Re: C: scanf

Post by Snwbrdr »

Automatically translated from French.

Thanks for this answer :)

But is the feature really taboo?
OKKO is SNWBRDR

Everything for PC