Answers for "str"

0

str

def __str__(self):
        return self.name
Posted by: Guest on December-28-2020
0

str

/* strstr example */
#include <stdio.h>
#include <string.h>

int main ()
{
  char str[] ="This is a simple string";
  char * pch;
  pch = strstr (str,"simple");
  if (pch != NULL)
    strncpy (pch,"sample",6);
  puts (str);
  return 0;
}
Posted by: Guest on June-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language