Since 4/14/2012 2:26:37 AM, derkgwen has written 3 articles and participated in 340 conversations. derkgwen signature: derkgwen
derkgwen's articles:
Items(3) /1
Re: bitwise absolute value772 (9/10/2003 5:18:23 AM) comp.lang.c # That works, but it assumes 32 bit integers. Is there a # portable/standard way to do this? Or are ANSI integers assert(-1==~0); /*twos complement*/ signx = x>>(sizeof x*CHAR_BIT) absx = (x ^ signx)-signx; ... Derk
The Agony and the Ecstasy118 (7/13/2003 4:46:12 AM) comp.lang.tcl I finally upgraded to 8.4.3 knowing what a joy that would be. The agony: trying to use the shipped Tcl.pbproj and Wish.pbproj. The ecstasy: I abandonned them and got projects that work properly. I wrote my ow... Derk
Increasing efficiency in C9337 (3/3/2004 10:07:25 PM) comp.lang.c As everybody knows, C uses a zero delimited unbounded pointer for its representation of strings. This is extremely inefficient because at each query of the length of the string, the computer starts an unbounde... jacob(2538)
Pointer-to-function with variable argument number521 (3/4/2004 12:15:11 AM) comp.lang.c Hi! Why do I get a warning about incompatible pointer type if I try to assign a pointer to the function with variable argument number: int func (int argc, ...) , but everything is ok when I'm using a sim... andrej.prsa(18)
extern local variables327 (3/4/2004 1:13:31 PM) comp.lang.c void myfunction(void) { extern int myvariable; return ; } what is the point in allowing local variables to have external linkage? its scope is only myfunction so it can't be used anywhere else.... j0mbolar(80)
lsort (-index : multiple indexes) and (tk)table135 (3/5/2004 11:06:15 AM) comp.lang.tcl I need to display a tabular list of records (zip name...) and have it sorted relatively to several criteria (first zip, then name, then...) and switching the order (by clicking in the comumns). So ok, I found t... thomas.lissajoux(1)
strip extra spaces1315 (3/7/2004 3:51:25 AM) comp.lang.tcl I know I've seen methods for stripping extras white space from a string but can't seem to find it on the wiki now. I pefer to avoid regexp because I've never gotten any kind of handle over it. The following wor... tuxfordNOSPAM(129)
how to "wait for any key"435 (3/7/2004 3:11:33 PM) comp.lang.c What is the most portable way of "waiting for any key", i.e. the user who runs a program from the console should observe the following: - the program stops running - as soon as the user presses any keyboard k... alexloeschediesmalk(4)
read a single line of a text file316 (3/7/2004 9:34:13 PM) comp.lang.tcl As total newbee in file handling in tcl/tk, i would like to know how to read single lines of a text file into tcl. The way I think it should be done by a " read $filehandler 1 " command and search for an end o... ReactbyNewsGroupPost(1)
How to capture output of a program in realtime726 (4/5/2004 2:53:49 PM) comp.lang.tcl I If I would capture of a program like mkisofs for example, and redirect stdout on my .text widget in realtime, how can I do? I tried with this script, but doesn't work: package require Tk text .text1 set ... dpphln(4)
trying to read a file427 (4/10/2004 7:09:01 PM) comp.lang.c Hi everyone, I'm trying to read the first line of a file this way: .... .... .... .... new_line=0; while((read=read(fd, &info, sizeof(info))) > 0 && !new_line){ if (strcmp(&info, "\n") != 0){ strca... qwe1(1)
Solving problem in linear time228 (4/14/2004 1:16:11 AM) comp.programming Hi, Could someone suggest how to solve this problem. There're two algorithms A and B which solve a problem X. Given, for every input length n, A runs in time cn or B runs in time dn. When you have input n it... ag165(5)