LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Closed Thread
 
LinkBack Search this Thread
Old 01-14-2010, 03:10 PM   #76
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536

Quote:
Originally Posted by minrich View Post
... vindaloo
MMMmmm!!
<-- loves Vindaloo curry, LOVES it!

I'm having 'breakfast' for supper tonight (one can never have too much breakfast).
 
Old 01-14-2010, 03:18 PM   #77
brianL
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
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
Has Kallisti had her rats today?
 
Old 01-14-2010, 03:22 PM   #78
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Quote:
Originally Posted by brianL View Post
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.
 
Old 01-14-2010, 03:25 PM   #79
brianL
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
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
One rat a week? Mmmm, cheap and tasty!
 
Old 01-14-2010, 04:21 PM   #80
brianL
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
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
I'm staring vacantly into space, waiting for inspiration. Now my nose is itching. aaa...AAAATCHOOOOOOOOO!!!
 
Old 01-14-2010, 04:26 PM   #81
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 545

Rep: Reputation: 40
@brianL - Bless you
 
Old 01-14-2010, 04:26 PM   #82
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,018
Blog Entries: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by brianL View Post
I'm staring vacantly into space, waiting for inspiration. Now my nose is itching. aaa...AAAATCHOOOOOOOOO!!!
Bless you.

Now, back to leopards scheduled World Domination.
 
Old 01-14-2010, 04:27 PM   #83
brianL
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
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
Thanks.
 
Old 01-14-2010, 05:37 PM   #84
GoinEasy9
Member
 
Registered: Feb 2004
Location: Manorville, New York, USA
Distribution: Fedora 11/12, Mepis, Debian
Posts: 378
Blog Entries: 1

Rep: Reputation: 39
Begin
Watching my Dog chew on a small pillow.
Again
 
Old 01-14-2010, 06:00 PM   #85
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 859
Blog Entries: 31

Rep: Reputation: 144Reputation: 144
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 ;)
 
Old 01-14-2010, 06:01 PM   #86
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: washington U.S.
Distribution: Damn Small Linux, KateOs, M$ Ickdows Vista, My own OS
Posts: 2,094

Rep: Reputation: 104Reputation: 104
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.
 
Old 01-14-2010, 06:05 PM   #87
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 859
Blog Entries: 31

Rep: Reputation: 144Reputation: 144
Quote:
BUG!
sprintf() needs two args, it has to be printf() instead.
Fixed. I knew I screwed something up, LOL.
 
Old 01-14-2010, 06:06 PM   #88
brianL
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
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
Thinking...thinking...thinking...
Don't ask me what about. I'm too busy thinking to know what I'm thinking about, I think.
 
Old 01-14-2010, 06:12 PM   #89
brianL
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
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
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.
 
Old 01-14-2010, 06:15 PM   #90
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: washington U.S.
Distribution: Damn Small Linux, KateOs, M$ Ickdows Vista, My own OS
Posts: 2,094

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by brianL View Post
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.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 03:47 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration