Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Compiler error: memset was not declared in this scope


// na verdade só precisa incluir a proxima linha:
#include <cstring>
// isso já resolve o problema, o resto abaixo é só info adicional

$ man memset

MEMSET(3)                BSD Library Functions Manual                MEMSET(3)

NAME
     memset -- fill a byte string with a byte value

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <string.h>

     void *
     memset(void *b, int c, size_t len);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Compiler #memset #declared #scope
ADD COMMENT
Topic
Name
2+4 =