C Library - <string.h>

Анульовано Опубліковано %project.relative_time Оплачується при отриманні
Анульовано Оплачується при отриманні

Write all 22 of the library functions defined by string.h for working with c-strings and memory as documented here [url removed, login to view] [url removed, login to view] Write a C

program to test your implementations of each of your string/memory functions from string.h. Write at least three test cases per string function. main can call each of the 22 test function (so it may be longer than 5 lines). Write one test function for each string function that has at least three test cases. These test function may also exceed the 5 line limit.

For strxfrm, call your strncpy appropriately without doing any local translation. For strcoll, call strcmp appropriately. More specifically, you may ignore LC_COLLATE completely.

Declare your own errno variable and an enumeration type for the errors you want. Declare an array of strings indexed by this. strerror() should return the message at errorMessages[errno]; If you prefer, you may detect any error in use of your string functions, print an appropriate error message to stderr immediately instead of using errno and strerror() as done by the string.h functions in the C library. If you opt for the latter, you should have strerror() always return one string "string error: to be done";

Програмування на С

ID Проекту: #7001674

Про проект

Дистанційний проект Остання активність Jan 20, 2015