| |
| |
| |
|
Page: 1 2
Comments:
<0> hey, is it possible to use #define's when specifying #include'd header files. e.g #define DIR #include "DIR/header.c" . Obviously enough the quotes will screw that up but im curious if there is another way? The reason is the person compiling this will have these header files in a different location to me and to save them changing the include location in multiple places i would like to do it in a variable of some sort. Is there some sort of 'best practice' regarding thi <1> #ifdef WHATEVER <1> #include "whatever.h" <1> #endif <1> or did you mean #include WHATEVER? <1> well actually, the latter is not legal <0> i mean the is there a way to include some sort of variable in the path to the header file <1> no <0> figured as much <0> oh well, i'll just sym link the damn path to something shorter ;) <1> use your compiler's "extra include path" option <1> -I with gcc <0> ah...thats a much better idea. cheers <0> odd, tried that like gcc -l /home/nnp/coding/include/ -o test test.c <0> and the header files werent found <2> :``(
<3> nnp_ wants auto* tools <4> holas <5> when i kill a forked child process with the parent process who is in "socket accept" changes to wait. how can a child process dying effect the socket state of the parent process? <6> it sends a signal to the parent, interrupting the current operation. <6> ah, c-bot is gone. <6> SIGCHLD <6> man signal <6> ah, here it is. <6> c-bot, tell lonetron about signal <7> lonetron, here you go: signal - #include <signal.h> sighandler_t signal (int signum, sighandler_t action) Basic Signal Handling (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_24.html#SEC480 <8> coming back <9> hey guys <9> this may be a really dumb question but is there a way to get a FILE * that interfaces with a region of memory instead of a file on disk? <3> what function are you wanting to use with it? <3> a ramdisk <9> im receiving a file from the network in my code and then im trying to preform a function on it from a library that wants a FILE * and i don't want to write the file to disk <3> what function? <9> the gz* functions from zlib <3> well it also works with pipes don't it? <3> hrm <9> i dont know how to use pipes but yeah i think it does <9> can you fdopen pipes? <3> c-bot pipe <7> winkey, here you go: pipe - #include <unistd.h> int pipe (int filedes[2]) Creating a Pipe (POSIX.1) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_15.html#SEC296 <3> fdreopen <3> c-bot fdreopen <7> winkey, the magic 8 ball says... I do not know. <3> oops <3> c-bot freopen <7> winkey, here you go: freopen - #include <stdio.h> FILE * freopen (const char *filename, const char *opentype, FILE *stream) Opening Streams (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_12.html#SEC178 <3> erm thats not what io wanted <3> fdopen <3> duu <3> pipes have a fd <9> hmm <9> c-bot fdopen <7> Atrix, here you go: fdopen - #include <stdio.h> FILE * fdopen (int filedes, const char *opentype) Descriptors and Streams (POSIX.1) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_13.html#SEC240 <9> thanks winkey (: <3> ok my question now <3> if i can remeber it <3> Atrix gave me crs disease <9> hehe <3> can't remeber s*** <3> ohh is it a safe ***umption that theres always 65535 ports? <8> winkey: IPv6 may have more; i don't recall. <8> IPv4 says there are 16-bits' worth <3> hrm <3> i don't remeber what ipv6 has either <3> for now i will just use a u_int16_t <10> "int will normally be the natural size of the particular machine" <10> Will this statement will always be true <10> ? <11> thanks dbtid for +v <12> He does it for free, too. <12> Your appreciation is all that keeps him going. <11> :) <11> would not be much easyer to use a program to give 'v' to users? <12> We do. <12> Several. <12> dbtid is one of them. <12> He just also happens to be a preson.
<12> *Person <11> I observed a delay between the time I entered the channel and the time I was v-ed, and I thought it is a person. <11> any romanian here? <13> Hopefully not <3> http://www.rafb.net/paste/results/Hb2b0h67.html what do you dfo when your trying to typedef 2 things and they refer to eachother? <8> ircPlusPlus: 60 second wait <11> Ashe`, hopefully? <11> whay is that? <11> *why <11> I'm romanian <8> ircPlusPlus: because in our long years of being on irc, romanians tend to be highly annoying. <11> :)) <8> ooooh you shouldn't have said that <11> that's right <14> winkey: http://www.rafb.net/paste/results/dZNVi514.html this should work (not sure if it's the best or the only way to do it) <8> winkey: what's wrong with your struct? <11> we are annoying :D <14> dbtid: it uses a typedef that is defined after, but the typedef that is defined after uses the typedef of the struct <8> oh i see <8> yeah, what sheep-- did is right <8> i missed the net_callback part <3> ohh that looks good <3> thank you mr woolie <14> you're welcome <3> ever get hot in that coat? ;-) <14> yes, especially in the summer <13> sheep-- is shaved <8> but he's from Russia, so he needed it there <13> e-very-where <8> oooh i didn't need to hear that <3> anjuta 2.0.2 is bugged but it sure has some nice features <13> Can't be worse than KDevelop <3> well its alpha so i kinda expected it to be <13> It will always be alpha <13> That's just an excuse <3> it suports multiple targets now <14> Ashe`: you didn't see pictures, did you? <3> the auto tools stuff seems to work pretty good <13> I saw them <14> darn. <14> :P <13> After surgery, you'll be hot <13> http://www.serenityacresllamas.com/Critters/dyna3web.jpg <14> actually... this is what i look like http://vampfreak.tripod.com/me.jpg <13> Hmm, you have some ***y friends <13> Some of them single? <14> stop confusing your animals <14> oh... that's why you said after surgery <14> i should read and understand everything first <13> Then you'd never talk <3> ouch <14> hehe.. ah, Ashe`... yes, most of them are. some of them are moving to .nz though <13> Good, I'm going to move there too <14> i don't get it <13> There's nothing to get <13> I'm going to move to .nz in few years <3> well its pretty there <14> oh <14> where are you now? europe? <13> Paris <13> Or you mean where I live? <8> afk <3> NOOOO <15> what's up, winkey - got a C prob? <3> besides needing more braincells? <3> naw i am ok atm <3> thank you though <3> that joke was that bad? <14> Ashe`: yeah I meant where you live... I vaguely (sp) recall something about Belgium? <8> he's from there IIRC <8> he lives in france <14> oh, alright <8> he says he works for a living; i find that hard to believe.
Return to
#c or Go to some related
logs:
kissfm linux #linuxhelp te gadil #AllNiteCafe #networking #AllNiteCafe ismini mauritius #AllNiteCafe nvrm xid 6 madunna jump
|
|