[so] [Tema2][Windows] Warnings
x x
vrmaximus at gmail.com
Sat Apr 18 13:01:41 EEST 2009
Salut!
As dori sa stiu daca suntem depunctati pt warning-uri de genul urmator:
client.c(69) : warning C4996: 'strcat': This function or variable may be
unsafe. Consider using strcat_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 9.0\VC\Include\string.h(79)
: see declaration of 'strcat'
client.c(78) : warning C4996: 'strcpy': This function or variable may be
unsafe. Consider using strcpy_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 9.0\VC\Include\string.h(74)
: see declaration of 'strcpy'
Intreb asta pentru ca la prezentarea temei este preciza(copy-paste):
"
Precizari
Windows
Tema se va rezolva folosind doar functii Win32. Se pot folosi de asemenea si
functiile de formatare printf, scanf, functiile de alocare de memorie
malloc, free si functiile de manipulare a sirurilor de caractere (strcat,
strdup, etc.)
"
Si printre functiile permise se numara si strcat, iar strcpy face parte din
aceeasi clasa. Am incercat si strcpy_s si strcat_s dupa cum se precizeaza in
warning, iar rezultatul este timeout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090418/3c66e415/attachment.htm>
More information about the so
mailing list