473,405 Members | 2,349 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,405 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 1399
"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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.