Turpo-Urpo

strlen

Oct 1st, 2020
915
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main () {
  5.    char str[] = "Saippuakauppias";
  6.    int len = strlen(str);
  7.    printf("(%s) on %d merkkiä pitkä sana.\n", str, len);
  8.    return(0);
  9. }
RAW Paste Data