473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

programming wiki needs you

i'm starting a programming wiki so we have a one stop place to find
source code for all languages. if anyone would like to help check out
http://www.coderwiki.com/wiki

thanks!

Aug 15 '06 #1
4 1396
"da404LewZer" <da*********@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
i'm starting a programming wiki so we have a one stop place to find
source code for all languages. if anyone would like to help check out
http://www.coderwiki.com/wiki
Someone beat you to it:
http://sourceforge.net/

What was your C question?

Aug 15 '06 #2
dc*****@connx.com wrote:
>
"da404LewZer" <da*********@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
i'm starting a programming wiki so we have a one stop place to find
source code for all languages.
if anyone would like to help check out
http://www.coderwiki.com/wiki

Someone beat you to it:
http://sourceforge.net/

What was your C question?
Oh come on, don't you even want to correct his mistakes?

For C:memcmp

This next line is wrong:
Synopsis: int memcmp(const char *s1, const char *s2, size_t n)
It should be:
Synopsis: int memcmp(const void *s1, const void *s2, size_t n)

This next line is wrong:
Successful return: 0 if equal, negative if s1<s2, positive if s1>s2

It should be:
0 if *(unsigned char *)s1 == *(unsigned char*)s2,
negative if *(unsigned char *)s1 < *(unsigned char*)s2,
positive if *(unsigned char *)s1 *(unsigned char*)s2.

--
pete
Aug 16 '06 #3
On Wed, 16 Aug 2006 01:26:28 +0000, pete wrote:
dc*****@connx.com wrote:
>>
"da404LewZer" <da*********@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegr oups.com...
i'm starting a programming wiki so we have a one stop place to find
source code for all languages.
if anyone would like to help check out
http://www.coderwiki.com/wiki

Someone beat you to it:
http://sourceforge.net/

What was your C question?

Oh come on, don't you even want to correct his mistakes?
Actually, these are not the OP's mistakes, but mine :-(
For C:memcmp

This next line is wrong:
Synopsis: int memcmp(const char *s1, const char *s2, size_t n)
It should be:
Synopsis: int memcmp(const void *s1, const void *s2, size_t n)
Thanks for telling about this error. I have fixed it now.
This next line is wrong:
Successful return: 0 if equal, negative if s1<s2, positive if s1>s2
This was a non-successfull attempt at a compact description. I have
changed it to a more verbose text, but am not yet happy with it.
It should be:
0 if *(unsigned char *)s1 == *(unsigned char*)s2,
negative if *(unsigned char *)s1 < *(unsigned char*)s2,
positive if *(unsigned char *)s1 *(unsigned char*)s2.
This is also wrong. memcmp() compares a range of characters, not only the
first (unless n==1).

There are probably lots of other similar errors in the C pages. Most of
them where made by copying from another page and changing the
parts where there are differences. I have probably overlooked some
important differences. I haven't had the time to check all of them yet.

This is a wiki, where anyone is allowed to edit, and all C articles needs
error checking, expansion and better examples. There is also an incomplete
list of missing pages on C:Todo.

So, if someone at comp.lang.c is tired of telling yet another newbie that
his post is off-topic, he/she can come to CoderWiki and write some
documentation.

--

Arild Hystad

Aug 16 '06 #4
Arild Hystad wrote:
>
On Wed, 16 Aug 2006 01:26:28 +0000, pete wrote:
It should be:
0 if *(unsigned char *)s1 == *(unsigned char*)s2,
negative if *(unsigned char *)s1 < *(unsigned char*)s2,
positive if *(unsigned char *)s1 *(unsigned char*)s2.

This is also wrong. memcmp() compares a range of characters,
not only the first (unless n==1).
OK

--
pete
Aug 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: mrby | last post by:
Hi, I see that Wiki's method of editing HTML is rather simple, for example: Using *bold* for bold text, and using _itatics_ for itatic font text. I wonder if there is available code for this...
2
by: Kenneth McDonald | last post by:
I'm looking for a Wiki engine to set up for my company, so that we can incrementally add user documentation for a fairly complex program, plus allow users to add their own comments for the benefit...
65
by: Giannis Papadopoulos | last post by:
Although Steve Summit's C FAQ is really good, are there any C FAQ wikis? -- one's freedom stops where others' begin Giannis Papadopoulos http://dop.users.uth.gr/ University of Thessaly...
302
by: Lee | last post by:
Hi Whenever I use the gets() function, the gnu c compiler gives a warning that it is dangerous to use gets(). Is this due to the possibility of array overflow? Is it correct that the program...
1
by: da404lewzer | last post by:
i'm starting a programming wiki so we have a one stop place to find source code for all languages. if anyone would like to help check out http://www.coderwiki.com/wiki thanks!
0
by: Jeff Rush | last post by:
At PyCon this year we're going to have a multi-day game programming clinic and challenge. This is a first-time event and an experiment to find those in the Python community who enjoy playing and...
2
by: _A_C-ker_ | last post by:
Hello geek(s), I'm in desperate need of graphics programming using C language. Does anyone have material or web-links that explain graphics programming in- detail? I would appreciate your help...
84
by: aarklon | last post by:
Hi all, I found an interesting article here:- http://en.wikipedia.org/wiki/Criticism_of_the_C_programming_language well what do you guys think of this article....??? Is it constructive...
151
by: istillshine | last post by:
There are many languages around: C++, JAVA, PASCAL, and so on. I tried to learn C++ and JAVA, but ended up criticizing them. Is it because C was my first programming language? I like C...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.