A C without void*78303 (3/20/2011 8:00:59 PM) comp.lang.c Why does C have void* ? Imagine a C' where the functionality that void*
provides would be provided instead by unsigned char* plus what
unsigned char* usually does. In what way would C' be inferior to C ?
... Spiros
Reading from files and range of char and friends13222 (3/10/2011 4:40:32 PM) comp.lang.c If you are reading from a file by successively calling fgetc() is there any point in storing what you read in anything other than unsigned char ? If you try to store it in char or signed char then it's possibl... Spiros
Best method for creating function "templates"6114 (2/25/2011 10:58:02 PM) comp.lang.c I'm writing a library where on error the library functions are supposed
to call a function with prototype
unsigned long error_handler(unsigned long , unsigned long)
which should be supplied by the user. The ... Spiros
Does go have a return value ?2974 (11/30/2009 2:55:28 AM) comp.lang.lisp Does a go form have a return value ? The HS gives
go tag =>|
but I couldn't find anything in the notation section for |.
I assume there's no return value and the following experiment seems to
confirm it:
... Spiros
Erratum in "Practical Common Lisp" ?528 (11/12/2009 3:49:24 AM) comp.lang.lisp In page 266 chapter 21 we read: the reader reads DEFVAR as the symbol from the COMMON-LISP package and *X* as a symbol in COMMON-LISP-USER. Should there be a "interns" right before "*X*" ? ... Spiros
Remembering information during compilation4626 (11/7/2009 6:18:19 PM) comp.lang.lisp I'm trying to construct a macro called memory. The syntax is memory (&rest body) and doing (memory form) should expand to (SYMBOL-MACROLET ((CELL XXX)) form) where XXX should be replaced by the number of ... Spiros
Mistake in the specification of rotatef ?627 (11/5/2009 2:17:12 AM) comp.lang.lisp In http://www.lispworks.com/documentation/HyperSpec/Body/m_rotate.htm we read: "In the form (rotatef place1 place2 ... placen), the values in place1 through placen are read and written". Does it mean "saved" in... Spiros
Looking for a paper on "scapegoat trees"329 (8/19/2009 2:41:43 PM) comp.theory I was looking at http://cg.scs.carleton.ca/~morin/teaching/5408/refs/gr93.pdf In case the link stops working the paper is Igal Galperin, Ronald L. Rivest: Scapegoat Trees Proceedings of the Fourth An... Spiros
What is the point of _POSIX_NO_TRUNC ?2144 (7/25/2009 10:07:14 AM) comp.unix.programmer The description at http://www.opengroup.org/onlinepubs/7990989775/xsh/unistd.h.html says Pathname components longer than {NAME_MAX} generate an error. I don't see what purpose _POSIX_NO_TRUNC serves. An i... Spiros
Introducing a teenager to programming7443 (9/24/2010 9:47:03 PM) comp.programming My son is 16 and quite good at math. He wants to take up programming, with an eye to smartphone apps, but understands that he has got a lot to learn first. A happy father I am. However, I'm not quite sure wh... o.f.n.u.t.s(12)
Unicode usenet posting. This is a test.8862 (9/26/2010 7:42:57 AM) comp.lang.lisp I read news on a Mac using MT-Newswatcher, which is a Carbon application.
Carbon apps don't quite handle unicode correctly, so I can't actually
post a unicode message using MT-Newswatcher, and all of the Coco... RG
Passing NULL as a function pointer5216 (2/17/2011 11:18:39 AM) comp.lang.c I have a function that has a function pointer as one of its argument. Can I pass NULL as this parameter? I have some code (from lwip project - www.sics.se/~adam/lwip) that often pass NULL as function pointer p... pozzugno2(9)
Question about "Expert C programming"7395 (3/3/2011 1:17:24 AM) comp.lang.c I just got a copy of "Expert C programming" but I think it may be
missing some text and I want to make sure. On page 290 at the end of
chapter 10 there is "A single verification condition from the proof of
a... Spiros
Esoteric definitions of TRUE and FALSE6622 (3/4/2011 2:30:57 PM) comp.lang.c Hello, I've come across a library which defines TRUE and FALSE thus. /* BOOL type constant values */ #ifndef TRUE #define TRUE (1 == 1) #endif #ifndef FALSE #define FALSE (!TRUE) #endif Do you know why... Noob
x=r=y; // With r volatile. Is r read?3027 (3/7/2011 4:05:07 PM) comp.lang.c Hi, the subject sums it all. extern volatile unsigned r; unsigned x,y; void test(void) { x=r=y; } What happens: - y is read, written in r and in x. - y is read, written in r; then r is read, written in x.... fgrieu(251)
Reading from files and range of char and friends13222 (3/10/2011 4:40:32 PM) comp.lang.c If you are reading from a file by successively calling fgetc() is there any point in storing what you read in anything other than unsigned char ? If you try to store it in char or signed char then it's possibl... spibou(1037)