LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-23-2005, 05:29 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
buggy c code?


Plz check the following 2 lines
Can u plc explain me why this shit happens?


if (strncmp(name,"htb",3)==0){
printf("found htb parameter %s \n",name);

Check what is the result
found htb parameter tbfburst
 
Old 09-23-2005, 05:43 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
It doesn't happen to me. If name doesn't begin with "htb" then it doesn't print anything.
 
Old 09-23-2005, 06:25 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
you forgot to close the if statement with a } that or just remove the { you dont need them unless you have more then one statement below.
 
  


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
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM
Amarok is getting better but still buggy... foxy123 Linux - Software 1 01-17-2005 11:15 AM
Buggy distros bigrigdriver Linux - Distributions 6 10-10-2002 08:29 AM
MkIsofs buggy? Half_Elf Linux - Software 8 08-19-2002 05:34 PM
gcc-2.96 buggy DavidPhillips Linux - General 3 02-03-2002 02:33 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:39 PM.

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