Adm1n_0v3rride

strcpy in C (C) 2017 by Adm1n_0v3rride

Dec 26th, 2017
141
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // strcpy in C (C) 2017 by Adm1n_0v3rride
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. int main() {
  6.    
  7.     char message[20];
  8.     int count,i;
  9.    
  10.     strcpy(message, "Hello, world!");
  11.    
  12.     printf("How many times do you want your message to be looped?: ");
  13.     scanf("%d", &count);
  14.    
  15.     for(i = 0; i < count; i++) {
  16.         printf("%3d - %s\n", i, message);
  17.     }
  18.     return 0;
  19. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×