Horje
use of strstr in c++ Code Example
use of strstr in c++
/* strstr example */
#include <stdio.h>
#include <string.h>

int main ()
{
  char str[] ="This is a simple string";
  char * pch;
  pch = strstr (str,"simple");
  strncpy (pch,"sample",6);
  puts (str);
  return 0;
}




Cpp

Related
Arduino C++ servomotor random moving Code Example Arduino C++ servomotor random moving Code Example
c++ dynamic array Code Example c++ dynamic array Code Example
// A C++ program to show that we can use reference to Code Example // A C++ program to show that we can use reference to Code Example
random key generator c++ all unique characters Code Example random key generator c++ all unique characters Code Example
sort n characters in descending order c++ Code Example sort n characters in descending order c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8