User talk:Neilc

From Wikipedia, the free encyclopedia

Contents

[edit] Archives


[edit] Removal of a link on C programming language page

I noticed you removed the link to csourcesearch.net on this page. Have you visited this site? I think it's quite useful and worthy of inclusion. - Jrthorpe


[edit] malloc and sizeof

In C, the sizeof operator requires brackets around its operand if used on a type rather than an expression. Like so:

$ cat x.c
#include <sys/types.h>

int
main(void)
{
        size_t  n;

        n = sizeof n;
        n = sizeof (n);
        n = sizeof (int);
        n = sizeof int;
}
$ gcc x.c
x.c: In function `main':
x.c:11: error: syntax error before "int"
$

You may already know (or be interested to know) that the other interesting sizeof thing is what happens when you do (sizeof printf("Test!")). This result—the fact that sizeof doesn't behave like a function even though it can be made to look like one—is the reason many programmers don't use brackets around the operand unless they are required, and put a space between sizeof and the brackets in that case, ie making it look like an operator (which it is) rather than a function. NicM 13:54, 24 September 2006 (UTC).

[edit] licence/license on openbsd

Your recent search-and-replace of "licence" with "license" in the OpenBSD article seems inappropriate [1]. There are times when this can be ok, and I haven't looked into the article to see if this is a time where it's ok, but the reason you gave in the edit summary is not ok. Maybe you just wrote a bad edit summary. In commonweath/european/internalation English, it is perfectly normal to spell names as they are supposed to be spelled, and writing licence as it is supposed to be written. For example, this is correct English in non-USA English: "The GNU General Public License is a free software licence". Gronky 20:33, 16 October 2006 (UTC)

[edit] Nemo 33 copyright

It would appear that there is no copyright violation on this article, as the source you list (http://www.anvari.org/cols/Deepest_Pool_in_the_World.html) is simply republishing Wikipedia material. -- Nick t 11:59, 9 March 2007 (UTC)