Top "Tr24731" questions

TR 24731 is a technical report prepared by the ISO C standardization committee, now partially incorporated as optional Annex K in the ISO/IEC 9899:2011 C Standard.

error C4996: 'scanf': This function or variable may be unsafe in c programming

I have created a small application to find max number by using user-defined function with parameter. When I run it, …

c windows visual-studio c11 tr24731
Difference between scanf and scanf_s

What is the difference between scanf and scanf_s? In the university I have been taught and I am using …

c visual-studio scanf tr24731
How to go from fopen to fopen_s

Visual Studio is complaining about fopen. I can't find the proper syntax for changing it. I have: FILE *filepoint = (fopen(…

c++ c windows c11 tr24731
sprintf_s was not declared in this scope

I have a C program that uses sprintf_s. It works fine in Windows, but when I compile my code …

c linux tr24731
String input using C scanf_s

I've been trying to look for answer myself, but I can't find one. I want to insert a part of …

c string scanf c11 tr24731
error: use of undeclared identifier 'errno_t'

Here is my dead simple dummy code: #include <errno.h> int main(void) { errno_t e; return 0; } Which …

c clang c11 errno tr24731
Why can't I use fopen?

In the mold of a previous question I asked about the so-called safe library deprecations, I find myself similarly bemused …

c++ c deprecated tr24731
strcpy_s not working with gcc

I have a C++11 project, and I added some strcpy_s method calls. This works on windows, but when compiling …

c++ c++11 gcc strcpy tr24731
How can fopen_s be more safe than fopen?

I'm working on legacy code for Windows platform. When I compile the code in VS2013, it give following warning: error …

c++ windows msvcrt crt tr24731
Undefined reference to memcpy_s

I'm trying to fix an undefined reference to memcpy_s() error. I've included string.h in my file and the …

c memcpy undefined-reference c11 tr24731