string-6.c
来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· C语言 代码 · 共 35 行
C
35 行
/* Copyright (C) 2001 Free Software Foundation. Ensure that builtin memcmp operations when all three arguments are constant is optimized and performs correctly. Taken from PR optimize/3508. Written by Roger Sayle, 12/26/2001. */extern void abort (void);extern void link_error (void);typedef __SIZE_TYPE__ size_t;extern int memcmp (const void *, const void *, size_t);voidmain_test (void){ if (memcmp ("abcd", "efgh", 4) >= 0) link_error (); if (memcmp ("abcd", "abcd", 4) != 0) link_error (); if (memcmp ("efgh", "abcd", 4) <= 0) link_error ();}#ifndef __OPTIMIZE__/* When not optimizing, the above tests may generate references to the function link_error, but should never actually call it. */voidlink_error (){ abort ();}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?