STRNSET() Function – C Program

In previous C Language Program post we had discussed about  Compare String and STRCAM Function and STRCAT Function and STRLEN Function and STRCPY Function and STRNCAT Function and STRNCPY Function and STRREV Function and STRUPR Function and STRLWR Function and STRSET Function.

STRNSET() Function – C Program

Write a C Program to sets some portion of the character of string to given character.

STRNSET() Function – The STRNSET() Function used to sets some portion of  character of string to given character in C Program.

The Syntax of STRNSET() Function :

strnset(str1,  ‘ * ‘, 5) –  First 5  character of string str1 replaced by character ‘ * ‘.

Example of STRNSET() Function C Program

The output of STRNSET() Function C Program is :


Leave a Reply

Your email address will not be published. Required fields are marked *

2 + 1 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">