@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> fcntl(sockfd, F_SETFL, O_NONBLOCK); sets a socked to not block, how do I set it back to block?
<0> is there a way to do it??
<1> get the current flags, remove the non-blocking bit, set the result.
<0> twkm: sweet
<2> can someone tell me what the time complexity would be of this double for-loop : for x=1 to n{ for y=x to n{ sum+=1}} ?? would it be just 2(log n) ?
<3> where can I find a good example of how to make a dns query?
<1> libresolv.
<0> why
<0> why doesn't this work. perror is saying "Bad Address"
<0> http://rafb.net/p/Py7HQ397.html
<1> well, it doesn't compile.
<1> bad address after an exec typically means you failed to construct a proper set of arguments.
<0> the command executes just dandy, actually. If I reverse the dup2, it prints just happily to stdout
<0> args is char * args[] = {"-l", "-a", (char *) 0};
<1> why did you cast the last initializer?
<0> null terminated list of args



<1> yes it is, but why did you cast?
<1> anyway, which perror provides this output?
<0> the one inside the read, it would seem
<1> given that it outputs the string you provide (but did not quote here) i can only hope you don't need to guess
<0> okay, well it is one ***ociated with the read
<1> okay.
<1> well, i don't quite know which E* is mapped to "Bad Address" on your platform, but i'd guess that fds[0] isn't valid.
<0> but if fds[0] isn't valid, that would mean pipe() is failing, yeah?
<1> i would expect it to be valid if your code isn't too different from what you pasted.
<0> it's exactly the same
<1> *shrug*
<1> consider writing a test case.
<1> oh, and your args are wrong.
<0> ?
<1> your argv[0] is fairly silly.
<0> -l?
<1> yes.
<0> sad. silly.
<1> also you should not discard read's return value.
<0> hmm yeah good point
<1> and that implies you'll need a loop there.
<4> 1 4 VOICE dbtid DUAL Sit v4 (b&w)
<5> c-bot lastspoke x
<6> danimal, the magic 8 ball says... concentrate and ask again.
<5> :(
<1> x hardly ever speaks.
<1> the seen command might record that, though i'm not certain.
<5> c-bot seen C_Dreamer
<6> C_Dreamer!~C_D@CUnleashed.users.undernet.org was last seen in #c on Tuesday, 30 January 2007, 10:02:00
<5> heh
<5> well, if he's in england its still early morning
<7> c-bot, seen cpp-bot
<6> cpp-bot!~cppbot@cppbot.users.undernet.org was last seen in #programming on Tuesday, 30 January 2007, 22:08:12
<5> ack cpp
<7> haha
<5> i just started doing more C coding recently, i forgot the labor involved in malloc and free
<8> some body told me I should not read Let Us C by yashwant kanetkar
<8> can any one comment why?
<8> any one :D
<1> i've never heard of it.
<9> PETED!
<9> wb
<10> Hehe.
<10> Hey dib.
<9> i thought yesterday i was going to have to recharge my intl phone card
<10> Yeah, I know. I'm a bad op.
<10> But here I am!
<9> if we had a girl op, i'd make her take you to the bad op room and deal with you
<10> o.O
<10> That wouldn't help, you know.
<10> That would only exacerbate the problem.
<9> hrm
<10> brb, have to kick colleagues
<9> have fun
<11> nyc ka
<11> nid elp
<11> in java, can any1 elp me bowt it?
<10> English is spoken in here, and Java in #java
<11> any1 pro in java programing here?
<12> someone to help me in C or C++



<12> ?
<9> C yes
<9> C++ go to #c++
<9> read the /topic
<12> ok
<12> thank you
<13> hi
<13> any one can help me ?
<13> for a char tab[]
<13> if i have like this
<13> #define N 5
<13> char tab[N] ={"xsssxy"}
<13> i need to count number of x
<13> i do
<13> int i
<13> int res
<9> you need ;
<9> int i;
<9> int res;
<9> c-bot strlen
<6> dbtid, here you go: strlen - #include <string.h> size_t strlen (const char *s) String Length (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_5.html#SEC73
<13> wait
<9> that will count the number of characters, not including the terminal '\0'
<9> and your code is wrong for N
<13> while (tab[i] != \0)
<9> '\0'
<13> if (t[i]=='x')
<13> res=res+0;
<13> i=i+1;
<9> why would you add zero to something?
<9> stop right there
<9> put all this and put it onto a paste site
<9> c-bot paste code
<6> dbtid, here you go: please paste your code here: http://rafb.net/paste
<13> i initializ i=0; res=0; firts
<9> stop
<13> res=res+1; oops
<9> look, C-project, put your code on a paste site
<9> don't type in any more code here
<13> ok
<13> i go where ?
<9> http://rafb.net/paste
<9> you need to pay more attention to what's going on
<13> i choose C 99 or 98 ?
<9> doesn't matter
<13> if i do int main(void)
<13> its important to return somthing int ?
<9> you should return something yes
<9> c-bot EXIT_SUCCESS
<6> dbtid, here you go: EXIT_SUCCESS - #include <stdlib.h> int EXIT_SUCCESS Exit Status (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_25.html#SEC558
<9> c-bot EXIT_FAILURE
<6> dbtid, here you go: EXIT_FAILURE - #include <stdlib.h> int EXIT_FAILURE Exit Status (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_25.html#SEC558
<13> DONE
<9> one of those is fine
<13> my code is good ?
<9> i don't know
<9> where is your code?
<13> i past my code on ur site
<9> it's not my site
<9> what's the URL of your paste?
<13> URL: http://rafb.net/p/14uEFl90.html
<9> no your code is not goo
<9> good
<9> it's more goo
<9> but not good
<9> N is 6
<9> t takes up 8 characters
<9> that's bad
<9> it means a couple things
<9> a) you can't count
<9> b) you've used more storage than you declared and the compiler will complain
<9> on line 10 you have the wrong constant
<9> it's '\0' not \'0'
<13> ok


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c
or
Go to some related logs:

debian is more stable than slackware OR slackware is more stable than debian
ixili
ghotic makeup
#mysql
How many years did Alf Ramsey reign as England team manager
#linux
#linux
#MissKitten
#linux
#linuxhelp



Home  |  disclaimer  |  contact  |  submit quotes