LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2008, 01:44 AM   #1
nasim751
Member
 
Registered: Jan 2008
Posts: 40

Rep: Reputation: 15
Thumbs down warning: incompatible implicit declaration of built-in function ‘bzero’


how you will deal this warning

Quote:
warning: incompatible implicit declaration of built-in function ‘
bzero’

Code:
if( flow_hash[index] )
     if( flow_hash[index]->time_last_access-current_time > tcp_timeout ) {

        state = flow_hash[index]->next;
        bzero( state, sizeof(flow_state_t) );
        flow_hash[index]->next = state;

        /* statistics */
        stats.reuse++;

        return;
     }
please give me feedback.
 
Old 04-16-2008, 02:35 AM   #2
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
"man bzero" says that you have to include string.h
 
Old 08-08-2011, 04:00 PM   #3
slivin
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
its actually strings.h not string.h
 
Old 04-21-2014, 03:39 AM   #4
prashmikhanna
LQ Newbie
 
Registered: Apr 2014
Posts: 1

Rep: Reputation: Disabled
Smile

include the header file <string.h> , the warning will go away.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
warning: implicit declaration of function liguorir Linux - Software 5 10-22-2012 03:20 PM
warning: implicit declaration of function `snprintf' BiThian Programming 13 10-06-2011 04:26 PM
'incompatible implicit declaration' errors when compiling -Pb- Linux - Software 6 11-18-2010 12:39 AM
how to get rid of "warning : implicit declaration of function 'getpid' " ? diodio Linux - Newbie 6 02-01-2006 02:47 PM
warning: incompatible implicit declaration of built-in function ‘exit’ xzotech Programming 1 08-14-2005 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration