LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 01-14-2010, 03:10 PM   #76
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556

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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

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

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
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: 548

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,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
Thanks.
 
Old 01-14-2010, 05:37 PM   #84
GoinEasy9
Member
 
Registered: Feb 2004
Location: Manorville, New York, USA
Distribution: siduction, openSUSE Tumbleweed
Posts: 379
Blog Entries: 1

Rep: Reputation: 47
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: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
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: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
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: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
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: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
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



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



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

All times are GMT -5. The time now is 03:19 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