| |
| |
| |
|
Page: 1 2
Comments:
<0> does vsnprintf act like snprintf with c99? as in returns the number that WOULD have been printed? <0> c-bot vsnprintf <1> winkey, here you go: vsnprintf - #include <stdio.h> int vsnprintf (char *s, size_t size, const char *template, va_list ap) Variable Arguments Output Functions (GNU) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_12.html#SEC198 <0> don't seem to say <2> I need to use borland c++ builder with the "Mulithreading library" in order to use openssl perfectly... how can i do this? please... ; <3> how can i perform a check to see if a double variable is less than 0.. doing if (x<0) does not work properly for some reason when it is a double. <4> it should work <3> thats what i thought <3> well, in that case.. whats the proper scanf statement to get a double var.. <3> scanf("%d",var); ? <4> lf <4> c-bot scanf <1> nabis, here you go: scanf - #include <stdio.h> int scanf (const char *template, ...) Formatted Input Functions (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_12.html#SEC215 <3> i am still thrown off.. <3> theres no conversion for double numbers..
<3> unless it means a float <3> well its still not working.. <0> is there a comman macro for max path? <5> no one bothered to tell pwerty that scanf("%lf", &mydouble); would work? <0> [18:39:36] <4> lf <0> ohh i see he forgot the & <5> winkey: well, he wasn't getting the proper value into var because it wasn't the address <6> hey .. i'm trying to find the arguments a program was called with (that is, argv) in the middle of the program <6> possible? <7> I got ebay accounts, Rount,fresh hostwithphpmailer, and I BUY LIST OF FRESH CVV2, I WANT WHO WOULD BE SUPPLYING ME FRESH CVV AND I WILL BE GIVING HIM 40 DOLLARS EVERY WEEKS <8> Drg`: certainly. what seems hard about it? <9> steve summit <9> is my hero <10> whats the difference between executing with system() and execl()? <8> the first sentence of each description is usually sufficient to distinguish them. <8> system does something and when complete (probably) continues your program. <8> execl replaces your program, only if it fails would your program continue. <10> aah, thanks <11> dbtid: Allah Tuttugunu Altin etsin Emii.. Voice(+v) iin farketme teekkr eder :o) 1 2 2 KELEBEK 2ScripT 2 1 <12> Say that again? <5> watch <11> dbtid: Allah Tuttugunu Altin etsin Emii.. Voice(+v) iin farketme teekkr eder :o) 1 2 2 KELEBEK 2ScripT 2 1 <5> hee <5> did you get it that time :P <12> Third one was a ban, iirc <13> hi <13> [what does "dbtid" come from ?] <14> Doing Better Than I Deserve <5> oh, you HAD to tell him? :P <14> :P <5> how goes it darko``? feeling any better lately? <14> Ah, a bit. <14> Just a bit. <14> Thanks for asking. <13> ok <13> thanks <15> If I have a process A, and its child process B, if A had opened a file before created B (using open), A and B will share the same file descriptor, right? If I close the file descriptor in B (using close), then A won't be able to use the file descriptor? <16> spn, let me re-read :) <16> yeah it will <16> a file remains open-ed as long as there's an open descriptor ***ociated to it <16> also <16> if you have a process A open a file, fork a process B which changes its id <16> the process B has the same rights as A for accessing the open file <15> But A and B shares the *same* descriptor? That's why if I change the offset in B then A will be affected too? <16> not the same <16> the one in B is a copy of the one in A <16> so they have the same number <16> (because process B is a copy of process A) <16> but they are not the same <16> but you need to check the man page for read and pread <15> So why if I change A's offset it changes B's? <17> it's reference counted <17> the file isn't actually closed until the reference count reaches 0 <17> when you fork, the reference counts will be increased for open files <12> That's not what he's asking <17> oh <17> yes, changing the offset will change it for the others reerencing the same file afaik <15> I see. <15> Thanks.
<16> spn <16> that's why im advising you to take a look at the man page for read AND pread <15> They don't give many information (I'm on Ubuntu). <16> erf <16> www.openbsd.org <16> there are online man pages there <16> or on google <16> c-bot, pread <1> veins, here you go: pread - #include <unistd.h> ssize_t pread (int filedes, void *buffer, size_t size, off_t offset) Input and Output Primitives (Unix98) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_13.html#SEC238 <16> or there too :) <15> Thanks. <16> np <16> as long as you can read man pages, we can be friends <16> :) <16> mh <16> say i have an ioctl FIONREAD call that tells me i can read n bytes from a fd <16> no wait i need to rephrase <18> whit a tab, when i past the parameter to fonction... how? <16> say i have an ioctl FIONREAD call that tells me that there are n bytes available on a fd <19> arkange: rephrase <16> is it possible that i get an EINTR error and get a shorter read ? <16> or is the read of n bytes guaranteed to be atomic ? <18> sorry wait <19> the bytes returned would represent the bytes there <16> ? <19> ill show you an example hang on <16> minsport <16> to put it more simple, if the ioctl says i can read 10 bytes <16> can read return a value that's not -1 and not 10 ? <16> -1 with errno == EINTR <19> no why would it <16> well i don't know if the data is copied to the process memory atomically <16> or by chunks <16> if it is chunked, then maybe an interrupt could cause a short read to happen <16> i don't know if that can happen or not <19> interesting.. definetly could look into the source and see <16> well i could but then i'd have to look at every src :) <16> i'm bot sure if this is guaranteed by some standart <20> The system guarantees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left before the end-of-file, but in no other case. <20> :P <16> well yeah but that is still vague <16> the system could guarantee the availability of these bytes non-atomically <16> :/ <20> i think it means that in a single call to read it guarantess to read that number of bytes (under the specified conditions) <16> mmh :/ <16> anyways i'm not meeting the requirements <16> im reading from a socket <19> i wouldnt go by it <16> but ... a SOCK_STREAM is supposed to be as reliable as a normal file no ? :) <20> unless i don't understand by what you mean non-atomically.. i'm sure another process or thread can get some processor time in between there, but read wouldn't return <12> Files are not reliable <20> what's a "normal" file anyway.. who defines this normality? :P (ignore me) <16> sheep--, man 2 fstat ! :) <16> they mention ``regular files'' <16> so a normal file is a regular file no ? :) <20> ah, so the man defines normality, i get it <16> lol <19> lol <16> so basically <16> i should ***ume a short read is always possible <16> and test it <19> you should always test everything <16> mindsport: yeah <19> test your test :) <20> yeah, it's usually a bad idea to ***ume anything <16> lol <16> common <16> there are tests that are useless <20> well, i mean when reading things from files or sockets <19> definetly anything dynamic or user inputed. <16> yeah <16> believe me, i do check things ;) <19> even things for my personal use I do 2million checks I dont need <21> CATHCART THE THIRD, M.D. writes:
Return to
#c or Go to some related
logs:
#AllNiteCafe c++ SPI_SETMOUSE hackinbox What year in the 20th century saw three kings on the throne in England Javascript executes on page load lataifas.ro #linux #linux page of #london undernet #AllNiteCafe
|
|