Copier une sous chaîne dans un string avec la fonction ‘strncat()’

Author:


Download


#include 
#include 

int main ()
{
  char str1[128]="Bienvenu sur ";
  char str2[128]="C/C++, Java, PHP, Perl, Python";

 /*
  Copier les 6 premiers caractères de 'str2'
  à la fin 'str1'*/
  strncat (str1, str2, 6);

  puts (str1);
  return 0;
}

Leave a Reply

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

Copier une sous chaîne dans un string avec la fonction ‘strncat()’

Author:


Download


#include 
#include 

int main ()
{
  char str1[128]="Bienvenu sur ";
  char str2[128]="C/C++, Java, PHP, Perl, Python";

 /*
  Copier les 6 premiers caractères de 'str2'
  à la fin 'str1'*/
  strncat (str1, str2, 6);

  puts (str1);
  return 0;
}

Leave a Reply

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

Copier une sous chaîne dans un string avec la fonction ‘strncat()’

Author:


Download


#include 
#include 

int main ()
{
  char str1[128]="Bienvenu sur ";
  char str2[128]="C/C++, Java, PHP, Perl, Python";

 /*
  Copier les 6 premiers caractères de 'str2'
  à la fin 'str1'*/
  strncat (str1, str2, 6);

  puts (str1);
  return 0;
}

Leave a Reply

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

Copier une sous chaîne dans un string avec la fonction ‘strncat()’

Author:


Download


#include 
#include 

int main ()
{
  char str1[128]="Bienvenu sur ";
  char str2[128]="C/C++, Java, PHP, Perl, Python";

 /*
  Copier les 6 premiers caractères de 'str2'
  à la fin 'str1'*/
  strncat (str1, str2, 6);

  puts (str1);
  return 0;
}

Leave a Reply

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