Category: C library function

30
Jun
2016

How to count numbers from string ?

code: #include<stdio.h> #include<stdlib.h> int main(){ char line[]=”1 -2 10000 -50 20 7 445 -4″; char *p,*e; long…

19
Feb
2016

Some string functions

puts() in c i will implement. Main job of this function is to print a new line…

28
Dec
2015

c library function strcmp()

http://www.cplusplus.com/reference/cstring/strcmp/ http://www.tutorialspoint.com/c_standard_library/c_function_strcmp.htm for the pseudocode: http://stackoverflow.com/questions/12136329/how-does-strcmp-work http://en.cppreference.com/w/c/string/byte/strncmp example: #include<string.h> #include<stdio.h> demo(const char* lhs,const char* rhs) { int rc=strcmp(lhs,rhs);…