LoginSignup
0
0

More than 5 years have passed since last update.

strcmpが-1,0,1以外を返す例

Posted at

テストコード

strcmp.c
#include<stdio.h>
#include<string.h>

int main(void)
{
    char *str1="ABCD" ;
    char *str2="ABC" ;
    printf("strcmp(%s,%s) = %d\n", str1, str2, strcmp(str1, str2)) ;

    return 0 ;
}

SSHターミナルのスクリーンショット

WSS_20170811_023.jpg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0