|
Last change
on this file since 2527 was 2036, checked in by bird, 20 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
488 bytes
|
| Line | |
|---|
| 1 | /* Test case by Joseph S. Myers <[email protected]>. */
|
|---|
| 2 | #undef __USE_STRING_INLINES
|
|---|
| 3 | #define __USE_STRING_INLINES
|
|---|
| 4 | #include <stdio.h>
|
|---|
| 5 | #include <stdlib.h>
|
|---|
| 6 | #include <string.h>
|
|---|
| 7 |
|
|---|
| 8 | char d[3] = "\0\1\2";
|
|---|
| 9 |
|
|---|
| 10 | int
|
|---|
| 11 | main (void)
|
|---|
| 12 | {
|
|---|
| 13 | strncat (d, "\5\6", 1);
|
|---|
| 14 | if (d[0] != '\5')
|
|---|
| 15 | {
|
|---|
| 16 | puts ("d[0] != '\\5'");
|
|---|
| 17 | exit (1);
|
|---|
| 18 | }
|
|---|
| 19 | if (d[1] != '\0')
|
|---|
| 20 | {
|
|---|
| 21 | puts ("d[1] != '\\0'");
|
|---|
| 22 | exit (1);
|
|---|
| 23 | }
|
|---|
| 24 | if (d[2] != '\2')
|
|---|
| 25 | {
|
|---|
| 26 | puts ("d[2] != '\\2'");
|
|---|
| 27 | exit (1);
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | return 0;
|
|---|
| 31 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.