Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'bzero' was not declared in this scope

I already included <"stdio.h">

using this function

bzero(&server, length);

but the compiler says

error: 'bzero' was not declared in this scope

`

like image 405
User10259 Avatar asked Dec 10 '22 22:12

User10259


1 Answers

bzero() is not part of the standard library, it belongs to POSIX.

It's actually deprecated (note the LEGACY in the manual) now, so consider using memset() instead.

like image 156
Yu Hao Avatar answered Dec 29 '22 02:12

Yu Hao