Im implementing the sieve of eratosthenes using a bit vector calculating the size of this bit vector by an array
blocks is superior
he said windows though
no need for superior software on that
how does poll() in a main loop work when you have to deal with both SIGALRM and SIGIO ? do you just wait for SIGALRM before accepting the I/O? I can’t see doing it this way because all the keystrokes need a rather exact timestamp before they are sent on the network
notepad
lol
mingw developer studio
i use xcode
x)
but when i am in windows platform i choose Dev c++
or vim
i like vim a lot
xcode ain’t in debian
but it is just a text editor
x)
must be for windows
http://rafb.net/p/39nWg694.html
altering the source string is a bad idea
instead of placing a ”, you can just return a pointer to that position
the caller can then use memcpy(buffer, start, end-start) to grab it, if they like
is there a good reference to libc that documents everything?
no.
you mean the “topic-comment” thing?
in this case its handy since put it in the gdbm database with greatest ease
memcpy will give a little overhead and will need to put a ” in
but agreed not to good for using outside this implementation
no, I mean in terms of a synthetic grammar.
well, consider that if you get the end pointer, you can say char tmp = *end; *end = ”; … *end = tmp;
thats a great idea
simple but perfect… why didn’t i think of that?
Baughn, array.h:43: warning: array_length defined but not used
Baughn, heh :-/
Baughn, I can’t seem to get rid of that, do you know of any relevant gcc options?
How about.. removing the parameter?
rutski, privet
ok how can this be done, replace occurances in string got from user input with something else, sanitize the user input in string?
./gnome-paint: error while loading shared libraries: libgnomeui.so.32: cannot open shared object file: No such file or directory
wrong channel
array_length = array_length;
replace all occurances of x with something else in a string, without using regex, ideas in c?
Baughn, huh?
bust3d, huh?
Write this code http://rafb.net/p/90DBa654.html
Baughn, it’s a function
Baughn, I’m putting it as static in the header
ah.
Baughn, IIRC it was you who suggested that
joss193
(void
(void)array_length; will supress the warning, seeing as you sort of use it
Not sure you can put that in global scope, though
heh, that’s a bit of hack
I’d rather just tell GCC to suppress it
if I could only figure out how
you can’t.
maybe just don’t put it in the header
just write everything as usual ignoring spee
d
oh, -Wunused-function
it won’t suppress an error for a specific function.
Auris-, it’s not an error
ah, you want all of them off.
error, warning, whatever.
__attribute__((deprecated)) will supress that warning
http://rafb.net/p/QSt6OY82.txt
__attribute__((unused)) will supress it without producing a new one.
Baughn, that’s also a bit of a hack, I want portable code
this is supposed to compile under MSVC++ as wel
*8well
****well
The (void) hack is the most portable, then
But I see you found a warning flas
*g
Baughn,
I was looking for the search term “not used” in the man page
looking for “unused” instead pulled it up
hmm…this puts quotes around the words?
Did you just run it?
I hate how searching in large man pages is so wording dependent
not yet, what it does in this example?
up to you to find out if you care
well yes, Seems This was not what i wanted, but moment then.
compiling
Is someone here using Code