Browsing tag

C language

strchr string function in C programming language

strchr string function in C programming language In this tutorial, We will learn about strchr string function in C programming language strchr() – In C programming language strchr() string function, pointer displays the given character from its first occurrence. Declaration Syntax Syntax for strchr() function is given below char strchr( const char *str,int ch); Parameter or…

strdup string function in C programming language

strdup string function in C programming language In this tutorial, we will learn about strdup string function in C programming language Description strdub() – In C programming language, strdup string function is a predefined string function which is used to duplicate given string.   Declaration Syntax for strdub() function is given below: char strdup( const…

strlwr string function in C programming language

strlwr string function in C programming language In this tutorial, we will learn about strlwr string function in C programming language Description strlwr() – In the C programming language, this is used to Convert the string from any case to lower case   Declaration Syntax for strlwr() function is given below char strlwr ( char *string);…

strupr string function in C programming language

strupr string function in C programming language In this tutorial, we will learn about strupr string function in C programming language and its functionality. Description In C programming language strupr()  is a string function which is used to convert a given string from any case into uppercase. strupr() – this function is used to convert…

strtok string function in C programming language

strtok string function in C programming language In this tutorial, we will discuss strtok string function in C programming language strtok() -In C programming language, strtok()  used to breaks the token into a series of the string using the delimiter. Declaration Syntax The syntax of the strtok() function in the c language is : char…

strrev string function in C programming language

strrev string function in C programming language In this tutorial, we will discuss strrev string function in C programming language strrev() – strrev() string function in C programming language is a string library function which is used to  reverses the given string.   Declaration syntax  for strrev() is given below: char  strrev ( char *string);   parameter…

strset string function in C programming language

 strset() string function in C programming language In this tutorial, we will discuss strset() string function in C programming language Strset() – this string function in C programming language replaces the all the characters in a string to given characters. Declaration In the c programming language, the syntax  for strset()   is given below char  strset…

strcat String function in C programming language

strcat String function in C programming language In this tutorial we will discuss about strcat String function in C programming language Description In C programming language strcat()  is used to concatenate two string strcat()– The strcat()  appends a copy of the string targeted to by str2 to the end of the string targeted to by…

strncpy string function in C programming language

strncpy string function in C programming language In this tutorial, we are going to learn strncpy string function in C programming language Description Syntax of strncpy()  strncpy() -in C programming language, this is  copies given the number (first n  numbers)of characters from the array targeted by str2 into the array targeted to be str1 (from …

strcpy string function in C programming language

strcpy string function in C programming language In this tutorial, we will discuss strcpy string function in C programming language Description the strcpy()  copies the string pointed by source(str2) into object pointed to the destination(str1) of char array strcpy() – Copies String2  into String 1 Declaration In c Language, Syntax of  of strncpy : char…