C (programming language)
If you are interested in Learning C then please visit Topic:C.
"Hello World!" Example
edit#include <stdio.h>
int main(void) // C Main Function
{
printf("Hello World"); // print "Hello World" to the stdout
return 0; // Exit
}
Printing C Arguments
editint main(int argc, char * argv[])
{
int i;
for( i=1 ; i<argc; ++i)
{
printf("Argument %d = %s\n",i,argv[i]);
}
}
Memset Example
editvoid * memset(void * ptr, int value, unsigned long num)
{
unsigned char * _ptr = (unsigned char *)ptr;
unsigned char i;
for( i=0 ; i<num ; ++i)
{
_ptr[i]=(unsigned char)value;
}
return ptr;
}