General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
01-14-2010, 03:10 PM
#76
Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
Quote:
Originally Posted by
minrich
... vindaloo
MMMmmm!!
<-- loves Vindaloo curry, LOVES it!
I'm having 'breakfast' for supper tonight (one can never have too much breakfast).
01-14-2010, 03:18 PM
#77
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,476
Has Kallisti had her rats today?
01-14-2010, 03:22 PM
#78
Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
Quote:
Originally Posted by
brianL
Has Kallisti had her rats today?
Nope, that was Monday -- she had a big fat one
so will be not until this coming Monday when I feed her next.
01-14-2010, 03:25 PM
#79
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,476
One rat a week? Mmmm, cheap and tasty!
01-14-2010, 04:21 PM
#80
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,476
I'm staring vacantly into space, waiting for inspiration. Now my nose is itching. aaa...AAAATCH OOOO OOOOO!!!
01-14-2010, 04:26 PM
#81
Member
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 545
Rep:
@brianL - Bless you
01-14-2010, 04:26 PM
#82
Senior Member
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,018
Rep:
Quote:
Originally Posted by
brianL
I'm staring vacantly into space, waiting for inspiration. Now my nose is itching. aaa...AAAATCH OOOO OOOOO!!!
Bless you.
Now, back to leopards scheduled World Domination.
01-14-2010, 04:27 PM
#83
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,476
Thanks.
01-14-2010, 05:37 PM
#84
Member
Registered: Feb 2004
Location: Manorville, New York, USA
Distribution: Fedora 11/12, Mepis, Debian
Posts: 378
Rep:
Begin
Watching my Dog chew on a small pillow.
Again
01-14-2010, 06:00 PM
#85
Member
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 859
Rep:
Code:
/*askme *
* *
*© 2010 "MrCode". askme is Free software, you can modify *
*and/or redistribute it under the terms of the GNU General*
*Public license as published by the Free Software *
*Foundation;version 2 of the License, or (at your option) *
*any later version. */
#include <stdlib.h>
char answer1[] = "Not much.";
char answer2[] = "Something you don't need to know about";
char answer3[] = "Why do you care?";
int main(char* argc[],int argv)
{
if(strcmp(argc,"What\'s up?") > 0)
printf(answer1);
else if(strcmp(argc,"Whatcha doing?") > 0)
printf(answer2);
else if(strcmp(argc,"How\'re you doing?") > 0)
printf(answer3);
else
return 0;
}
(disclaimer: syntax/semantics aren't guaranteed to be correct; I'm a little rusty )
Last edited by MrCode; 01-14-2010 at 06:04 PM .
Reason: added © notice ;)
01-14-2010, 06:01 PM
#86
Senior Member
Registered: Sep 2009
Location: washington U.S.
Distribution: Damn Small Linux, KateOs, M$ Ickdows Vista, My own OS
Posts: 2,094
Rep:
Code:
#include <stdlib.h>
char answer1[] = "Not much.";
char answer2[] = "Something you don't need to know about";
char answer3[] = "Why do you care?";
int main(char* argc[],int argv)
{
if(strcmp(argc,"What\'s up?") > 0)
sprintf(answer1);
else if(strcmp(argc,"Whatcha doing?") > 0)
sprintf(answer2);
else if(strcmp(argc,"How\'re you doing?") > 0)
sprintf(answer3);
else
return 0;
}
BUG!
sprintf() needs two args, it has to be printf() instead.
01-14-2010, 06:05 PM
#87
Member
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 859
Rep:
Quote:
BUG!
sprintf() needs two args, it has to be printf() instead.
Fixed. I knew I screwed something up, LOL.
01-14-2010, 06:06 PM
#88
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,476
Thinking...thinking...thinking...
Don't ask me what about. I'm too busy thinking to know what I'm thinking about, I think.
01-14-2010, 06:12 PM
#89
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,476
Code:
brian@SlackB:~$ cd Progs
brian@SlackB:~/Progs$ gcc -o askme askme.c
askme.c: In function 'main':
askme.c:18: warning: incompatible implicit declaration of built-in function 'printf'
brian@SlackB:~/Progs$ ./askme
Segmentation fault
brian@SlackB:~/Progs$
I'm not a programmer.
01-14-2010, 06:15 PM
#90
Senior Member
Registered: Sep 2009
Location: washington U.S.
Distribution: Damn Small Linux, KateOs, M$ Ickdows Vista, My own OS
Posts: 2,094
Rep:
Quote:
Originally Posted by
brianL
Code:
brian@SlackB:~$ cd Progs
brian@SlackB:~/Progs$ gcc -o askme askme.c
askme.c: In function 'main':
askme.c:18: warning: incompatible implicit declaration of built-in function 'printf'
brian@SlackB:~/Progs$ ./askme
Segmentation fault
brian@SlackB:~/Progs$
I'm not a programmer.
Maybe because you did not pass args?
that was not it, i will get gdb out
Last edited by smeezekitty; 01-14-2010 at 06:19 PM .
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 03:47 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News