memset identifier not found

4.7k Views Asked by At

I am writing a mex function using cpp compiler. My problem is whenever I use this line:

memset(*(new_gammas+i), 0, llrlength*sizeof(double));

I am getting from compiler: "memset" identifier not found. Is it because of the lack of any specific header file or the code is wrong for c++?

1

There are 1 best solutions below

0
On

memset is declared in <cstring> and is in the std namespace.