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.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
01-14-2010, 03:10 PM
#76
LQ 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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Rep:
Has Kallisti had her rats today?
01-14-2010, 03:22 PM
#78
LQ 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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Rep:
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Rep:
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: 548
Rep:
@brianL - Bless you
01-14-2010, 04:26 PM
#82
Senior Member
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Rep:
Thanks.
01-14-2010, 05:37 PM
#84
Member
Registered: Feb 2004
Location: Manorville, New York, USA
Distribution: siduction, openSUSE Tumbleweed
Posts: 379
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: 864
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: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
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: 864
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Rep:
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Rep:
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: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
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 .
All times are GMT -5. The time now is 03:19 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