Since 4/25/2012 9:19:57 PM, beej has written 5 articles and participated in 439 conversations. beej signature: beej
beej's articles:
Items(5) /1
Objective C blocks3441 (9/10/2009 6:33:58 PM) comp.lang.c Have you guys checked this out? http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10 It describes a change to Objective C made by Apple to support anonymous functions in C. The syntax is actuall... Beej
Two's Complement, Serialization, etc.1428 (9/9/2009 8:37:58 AM) comp.lang.c Here's what I'm trying to do: portably serialize signed 16-bit integers. I'd like some ideas for improvement here. 1 void pack16(unsigned char buf[2], int16_t v) 2 { 3 uint16_t v2 = v; 4 buf[0]... Beej
time_t, arithmetic types, difftime, and -1426 (6/11/2009 9:11:03 PM) comp.lang.c That got me thinking: time_t is an arithmetic type, and so the '-' operator will work on it. But difftime() exists because there's nothing in the Standard that specifies the encoding of a time_t variable, so ... Beej
On Overquoting135 (2/27/2007 6:29:58 PM) comp.lang.c Forgive the humble request, but I know I would appreciate, in many instances, more selective quoting on clc. My spacebar appreciates it, as well. I can hear it talking to me. Where's my coffee? http://clc-w... Beej
Getting file line numbers from Nodes in a DOM?019 (2/8/2007 11:15:53 AM) comp.lang.python I have a DOM parsed with xml.dom.mindom.parse()...for a particular Node, is there an easy way to get the line (and maybe even column) numbers that the element appeared in the original file? Thanks, -Beej ... Beej
stack operation2441 (11/9/2009 10:12:19 PM) comp.lang.c kindly help c program on how to pop maximum element from stack in linear time.. ... neeraj1032(8)
IDE recommendation?1440 (11/10/2009 9:18:33 PM) comp.lang.c Hi all, I've been struggling along with just the Linux editing utility nano in conjunction with gcc. It's fine for just a few pages of code, but lately I've been trying to examine how more complex open source ... orion.osiris(37)
Source code for simple web page retriever?4633 (11/10/2009 9:30:03 PM) comp.lang.c Hi all, Does anyone know of a source code file on the net which when compiled enables one to download *part* of an html page (no recursion required). Just say the first 4k only. Absolutely nothing too fancy wh... orion.osiris(37)
Public Domain source code420 (11/11/2009 10:57:13 AM) comp.programming Hi, I've started to make a collection of public domain source code found on the Internet. The list of what I've already found is on my web site, there : http://www.whoow.org/public_domain/ I found a lot mor... oksid(10)
efficient approach to check a set bit45107 (12/4/2009 7:12:44 AM) comp.lang.c Friends,
I need a help to clear about following query. Seeking the help from
the group to solve and clear my doubts.
1. What might be an efficient and fastest way to check set bits of an
integer ? Supp... sanjib
While(1) or for(;;) for infinite loops?15956 (12/4/2009 6:06:57 PM) comp.lang.c I assume this has come up before but I am getting nowhere with searches. To make an infinite loop, while(1) tends to generate lint/compiler warnings, for(;;) does not. Other than personal preference, are the... scott7146(164)
client/server socket problem(server core dumping)1126 (12/4/2009 8:37:51 PM) comp.unix.programmer I have the following scenario:
-two servers are running. each is a seperate
process running on localhost on two seperate
ports.
-one client connects to each
client sends a mes... rabbits77
elliminate 0s439 (1/1/2010 8:54:30 PM) comp.lang.c how to elliminate zeros from a table allocated dynammically? ... nospam21(11322)
searching and storing large quantities of xml!317 (1/16/2010 12:30:13 AM) comp.lang.c I work in as 1st line support and python is one of my hobbies. We get quite a few requests for xml from our website and its a long strung out process. So I thought I'd try and create a system that deals with it... wayne.dads.bell(13)
Countdown "operator"35147 (1/30/2010 4:27:54 AM) comp.lang.c Let me preface this by saying that I strongly disapprove of it. :-)
I found it on a web page of Javascript hacks, here converted to C:
------------------------ 8
int main (void)
{
int i = 10;
... Beej