In this blog post, I am writing my own implementation in C for the strcpy function. You can watch the youtube video to see the live implementation of it. In this implementation, I return a new string rather than copying the value into the memory block pointed at by the pointer provided by the user. Because, […]
strcat function from string.h header file implementation in C
In this blog, I provide my own implementation for strcat function in string.h header file. You can watch the video, where I code this implementation. The logic is very simple, I allocate a block of memory just enough to hold the concatenated strings. First, I check for the validity of the first string, if the string […]
strlen string.h function implementation in c
This is the implementation for strlen function that is present in the string.h header file of c standard library. You can watch the youtube video for live implementation. This is my way of implementing this function, this is not how the standard library implements it. The basic idea is to use information of ‘\0’ termination […]
Stack Implementation using C language
You can watch me live code the Stack Datastructure on youtube. You can get the entire source code from github I have put all the function declaration in a header file. struct Stack{ int top; int capacity; int *data; }; //Creation struct Stack *createStack(int *capacity); //Deletion int deleteStack(struct Stack *stack); //Status Checks int isStackFull(struct Stack *stack); […]