| |
| |
| |
|
Page: 1 2
Comments:
<0> ok, i have an allocation question. <0> if i want to allocate memory in a function, i have to p*** in a double pointer to it, do i not? <0> e.g. int populatefoo(struct foo **bar) <1> what do you need? <1> yeah you do <1> then you can do <1> *bar = malloc (sizeof **bar))
<0> i found my answer in the topic <0> http://www.c-faq.com/ptrs/p***ptrinit.html <0> i seem to forget this often :( <1> if you want to change the value of a pointer, you must p*** in its address <1> if you don't like this, you can always make a typedef <1> for example <1> typedef struct foo *pfoo; <1> then you could have <1> int populatefoo (pfoo *bar) <1> { <1> *bar = malloc (sizeof **bar); <1> o... <1> i think that's right; i'm pretty tired right now <0> which timezone are you in <1> EST <1> i just got done coaching a baseball game <0> i suppose it's getting late <1> it's been a long day <1> 9:41pm EST <1> not THAT late <1> but it's been a looong day <1> lol <1> got him! <2> Hey guys, I have a prio-queue with a decleration pri_queue* pri_queue_create(int (*compare)(void *data1, void *data2)), and a compare function declared as int compare(void *item1, void *item2) how should I call pri_queue_create? <3> How about foo = pri_queue_create(compare) ? Seems logical enough. <1> i like it <1> i say go with it <1> but now it's sleepy time <1> g'night <3> Couche bien. <4> hello <4> -1.5F is a float? or a double? <5> c-bot explain f <6> danimal_, syntax error <5> c-bot f <6> danimal_, here you go: formfeed <5> c-bot \f
<6> danimal_, here you go: formfeed <5> float <4> ok, if the prototype of f() is missing, and I call it like f('2', -1.5F, 2L), it will contain arguments of type: char, float and long ? <7> BORG_2K3, 0.22 is a double. 0.22F or 0.22f is a float. 0.22L or 0.22l is a long double <4> ah... I get it <7> http://www.spale.com/c89draft.html#floating-suffix <4> thank you <4> one last question: '2' is char, right? <7> yes <7> c-bot, isprint <6> spale, unsure on that one... <7> you're supposed to know that c-bot <8> vous etes ou? <4> nous sommes ici :) <8> BORG_2K3 ok bien <8> vous etes l? <9> english timsaha <8> chat0n nn speak french ou arabic <10> Hey folks. I'm having a small "compilation"/"IDE" trouble. I get the error "Parser Error Message: Could not load type '<Type>', when I load a an .aspx page. Eventhough I've recompiled the application. It's as if this section of the application is being ignored by the compiler ? Anyone seen this before.. I've tried it a couple of times.. <10> any idea? <11> ookay i fixed <9> burak ? <9> does this look like #asp ? <11> yes? <11> yes <9> what are the two first words in topic ? <11> okay sorry <11> is ASP compiled? <9> i don't know <1> ls <1> heh <1> hi spale <12> Terms- = bot <13> == 0 <12> <-rehsarc> <14> missing + there. <15> spale ? <7> present! <15> :) <15> well <15> i have to code, but i can discuss :) <15> won't be interrupted like yesterday <15> so if you have free time ...
Return to
#c or Go to some related
logs:
#php 12HOW MANY POINTS DOES IT TAKE TO WIN A CRIBBAGE GAME ? #teens 59 iam Expecting: TRUSTED CERTIFICATE ssl gentoo skinicide ala bieb zobbi
#linux #chatzone #MissKitten
|
|