| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> just hang around for a while, show some gratitude ;P <0> love the #c <1> :P <1> sure I love the language but must learn alot and I can't google with good keywords right now <1> lets try the same question in #C++ rofl <2> what's the difference between " funPtr(parameters); " and " (*funPtr)(parameters); " <3> syntax <4> donny: Nothing. <3> :P <3> i'd use funPtr(parameters) <3> it's easier to read! <4> I concur wholeheartedly. <2> yeah i use the first as well. but when i saw someone doing the latter i thought it SHOULDN'T work <0> ar eyou talking for a prototype? <4> You could also do (********fptr)(args); <2> yeah
<2> i JUST tried that actually <3> feti: function pointer <0> i know what it is. <0> but what he's doing is a prototype <2> feti: no, but thanks. no it isn't. <3> it looks like he's calling it to me <2> if you don't make the distinction between these two pseudocode examples: func(parameters); and: func(type parameter); then i guess it is vague <2> but whatever. thanks everyone for your help. <5> is this open for c++ discussion as well? i couldn't seem to find a chan for that <6> I think #C++ generally is for that <6> ... yup <5> ha... for some reason i thought + wasn't a valid char in a chan name <5> thanks <6> hehe <6> you're welcome <6> though it says to join here o_O <5> for C questions <6> oh, didn't read carefully enough <6> my bada <6> *bad <7> .ws 17 <7> wops. my bad. <8> who you calling a wop? <9> :) <10> Gambit- are you on? <10> ok does anyone know how to use epoll? <11> yes <10> i dont understand epoll_create() ? <10> like does epoll_create(100); mean u can have max 100 file discriptors? <10> :( <12> Whatever you do, don't read the man page and find "The _size_ is not the maximum size of the backing store but just a hit to the kernel about how to dimension internal structures." <12> s/hit/hint <10> whats the backing store <12> http://foldoc.org/foldoc.cgi?query=backing+store <10> hmm <10> i read its not good to use over 100 with epoll_create in unrealircd is this true? <12> What's the justification? <10> it said to make it slower <10> which boggles me <12> It might be true, but I would still take ircd hackers' statements with a huge grain of salt, in general. <10> so if you had a server which is supposed to run on 20k clients youd set it to 20k for best efficiency <13> huge grain = block <13> salt lick <10> what would happen if you set epoll_create(2) and then got 10k connections would it crash? <13> anyway, im a fairly strong beleiver in empirical performance measurements <13> i have a feeling you'd get inferior performance characteristics, but i dont really know. you should test it. <13> ideally, those sort of parameters should be tunable in the production program so you can optimise performance between different configurations <14> When did AaronWL get ops? <9> I didn't know he had. don't worry. as long as I don't have ops <9> my wlan card has died! <9> it still recieves but doesn't transmit any more <9> :( <9> out of warranty too <15> hmm why are toronto isps being banned <15> this past week iave had a hard time getting into #c and #math <15> sometimes #physics <13> its just you use a large isp <13> and people are more inclined to ban a large isp if it isn't one that serves their geographic region. <16> char s[]="Hello"; will sizeof(s)-1 always be == strlen(s) in this case? <16> or are there alignment issues? <17> Jagg1: nope, though implicitly, there will be padding
<13> chars never need alignment <16> so memcpy(dest, s, sizeof(s)-1); dest+=sizeof(s)-1; is a bad idea? <13> that is fine, as long as 'dest' isnt anything weird. <16> dest is a char * <16> s is really char relno[]="rel=nofollow"; and I'm copying a string and inserting relno into it at each <a href=""> <15> ah ok <18> God I hate AIX <18> :/ <13> big blue owns you <11> big blue like, "you're my boy blue!" ? <16> what do I search for for information on char f[] alignment specs in C? <16> I used sizeof char_array but I don't know the details of alignment <16> I bet strlen(char []) would be optimized anyway <19> kthx^, I am now. <10> yeah i pretty much got my questions answered about epoll :D <19> What was it, for my own curiosity? <10> epoll_create(size) <10> how size related to max connections etc <19> and the answer? <10> mixed <19> that being? <10> that its just a hint and ircd hackers views on it are a grain of salt or somthing lol <16> I guess I should move my webbrowser from my 4th desktop in linux to my 3rd <16> alt-f4 is not too convenient to confuse in windows. <20> also, has anyone found something more convenient than ^A for screen sessions? <20> someone years ago mentioned they use ^O but I don't like hooking my finger to get to ctrl <19> tbh I didn't know you could change it <19> for me on my keyboard crtl a is fine because the layouts very different <13> ctrl-a sucsk for me because i use it a lot to go to the beginning of a line <13> i hardly ever use flow control.. i should use ctrl-s or something <19> in what env does ctrl-a go to the begining of a line? <13> ordinary unix command lines... <19> heh I just use the 'home' key :) <13> and anything based on libreadline or similar <13> 'home' doesnt work nearly as often as ctrl-a <19> it's placed near my thumb so it's not a stretch. <21> Well, if you use that satanic emacs editing mode, sure. <20> screen -e^Oo would change it to .. ^O :) <13> hm, i have no idea how to use emacs <20> emacs reminds me of wordstar <13> and as near as i can tell, hardly anyone else does either. <20> and wordstar was no word perfect 5.1 or whatever <20> wish screen could take alt-a or something.. easier on my thumb <22> SgtUnix == teh **** <22> for real for real <20> there we go.. screen takes bindkey command <22> hey jaggz <20> okay.. got it <20> added bindkey "\0330" select 0 bindkey "\0331" select 1 ... bindkey "\0339" select 9 <20> to screenrc <20> (on my system, esc-0 = meta-0 <20> hey dmi :) ltnt <23> yeah, been busy <23> hey mauke :) <23> Morgens :) <23> well Gut + !! <14> Dmi: hi, How you been? <14> http://www.youtube.com/watch?v=4dH8qpsm_0Q <24> I had cool exchange on the vim mailing list <24> I must archive it somewhere <24> The guys asked why \<:word does'nt match <24> doesn't match :word , that is <24> somebody answered that \< expects alphabetic char next, so it doesn't match <24> (btw this is indeed non-intuitive) <25> it totally is, if you know perl <24> The OP guy asks " I still don't <24> understand why you can't exclusively mark the start of this string with \<" <24> mauke: well depends of course on how your intiotion works ... <24> OK so he complains he still don't understand <24> I wrote in the response "\< requires alphabetic char right after it. " - 6 times <24> and then "Did I mention that : is not alphabetic character" <24> Fearing if it isn't too much of derision
Return to
#c or Go to some related
logs:
#cph #beginner #online nick@bandits HaLLuCiN0 #politics #solaris #politics nellymoser crispa #nhl
|
|