SHARE
TWEET

main4A.c

a guest Apr 25th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include "es4A.h"
  3.  
  4. int main() {
  5.   char* filename = "text.txt";
  6.   int success;
  7.   int lines;
  8.   int chars;
  9.   int words;
  10.   /*printf("nel main il valore puntato da lines รจ: %d\n", *lines);*/
  11.   success = wc(filename, &chars, & words, &lines);
  12.   if(success == 1){
  13.     printf("successo\n");
  14.   } else {
  15.     printf("fallimento\n");
  16.   }
  17.   printf("lines = %i\n", lines);
  18.   printf("words = %i\n", words);
  19.   printf("chars = %i\n", chars);
  20.   return 0;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top