From: kate@pfu.fujitsu.co.JP (Yoshio Katayama)
Newsgroups: fj.lang.c
Subject: Re: overflow action ??
Date: 11 Sep 92 14:27:37 GMT
	<KAWAI.92Sep11163009@sail-ss1.sail.t.u-tokyo.AC.JP>
	<SHINYA.92Sep11202301@chorus.sw6.isl.mei.co.JP>
Distribution: fj
Organization: PFU Limited, Tokyo Japan.
In-reply-to: shinya@isl.mei's message of 11 Sep 92 11:23:01 GMT

In article <SHINYA.92Sep11202301@chorus.sw6.isl.mei.co.JP>,
	shinya@isl.mei writes:

> $@:#$^$G!"%a%b%j$,$b$C$?$$$J(J$@$$$+$i!"!"!"$H$$$&M}M3$G!"(Jshort, char$@7?(J
> $@$rMxMQ$7$F$$$N$G$9$,!"$3$N$h$&$JL?Na$r=PNO$9$k$N$J$i!"$h$C$](J$@$I$N$3(J
> $@$H$,$J$$8B$j!"B.EY$N$3$H$r9M$($l$P!"(Jint$@$r;H$C$?J}$,$$$$$J$!$H6C$$$F(J
> $@$7$^$$$^$7$?!#(J

$@!!85!9(J$@!"$=$&$$$&$b$N$G$9!#KX$s$I$N%^%7%s$,%P%$%H%"%I%l%9$K$J$C$F(J
$@$$$^$9$+$i<B46$,$J$$$H;W$$$^$9$,!"%o!<%I%"(J$@%I%l%9%^%7%s$G$O!"(Jchar
$@7?$d(J short $@7?$N%"%/%;%9$N%*!<%P%X%C%I$,$+$J$jBg$-$$%^%7%s$bB8:_(J
$@$7$^$9!#(J

> $@!{(J$@%*!<%P!<%U%m!<$7$?;~$K$b!J7k2L$OITDj$G$"$C$F$b!K!"5,Dj$5$l$?7?$NHO0O$K(J
>   $@CM$,<}$^$C$F$$$J$1$l$P$J$i(J$@$J$$!#(J
> $@$H$$$&>r7o$rK~$?$7$F$$$J$$$H$$$&$3$H$r;XE&$5$l$^$7$?!#(J

$@!!$3$&$$$&>r7o$O!"(JANSI $@$K$OB8:_$7$^$;(J$@$s!#L$Dj5AF0:n$N>l9g$O!"=h(J
$@M}7O!J%3%s%Q%$%i$@$1$G$J$/!"<B9T7k2L$b4^$a$F!K$,$I$s$JH?1~$r<($7(J
$@$F$b(J ANSI $@$K=`5r$7$^$9!#(JANSI $@$NL$Dj5AF0:n$NDj5A$G$9!#(J

    $@!&(JUndefined behavior $@!](J behavior, uopn use of a nonportable
      or errorneous program construct, of errorneous data, or of
      an indetermiminatly valued objects, for which standard
      imposes no requirements.  Permissible undefind behavior
      ^^^^^^^^^^^^^^^^^^^^^^^
      ranges from ignoring the situation completely with
      unpredictable results, to behaving during transration or
      program execution in a documented manner characteristic of
      the environment (with or without the issuance of a
      diagnostic message), to terminating a transration or
      execution (with the issuance of adiagnostic message).

$@!t$I$s$J$H8@$C$F$b(J$@!"%3%s%Q%$%i$,$$$-$J$j%3%"%@%s%W$O%@%a$G$9$M(J (^_^;;

$@!!$b$C$H$b!"L$Dj5AF0:n$@$+$i$H8@$C$F9%$->!<j$J%$(J$@%s%W%j%a%s%H$r9T(J
$@$J$$$^$9$H!"8_49@-$,L5$$%3%s%Q%$%i$,$G$-$F$7$^$$$^$9!#CN$i$:CN$i(J
$@$:$N$&$A$KL$Dj5AF0:n(J$@$H$J$k%3!<%G%#%s%0$r9T$J$C$F$$$k$b$N$G$9!#(J

$@!t$&$k$5$$$3$H$r8@$($P!"(J#include <sys/types.h> $@$bL$Dj5AF0(J$@:n!D(J

$@!!%K%e!<%9$N%?%$%`%i%0$G9T$-0c$$$K$J$C$?$_$?$$$G$9$,!"JL$N5-;v$K(J
$@=q$-$^$7$?$h$&$K!";XE&$5$l$F$$(J$@$kItJ,$N7?JQ49L?Na$OL$Dj5AF0:n!J%*!<(J
$@%P!<%U%m!<!K$K78$kItJ,$G$O$"$j$^$;$s!#$A$J$_$K!"(J

	char a;

	for (a=0;;) a++;

$@$G$O!"%*!<%P!<%U%m!<$O1J5W$K5/$3$j$^$;$s!#$b$A$m$s!"L$Dj5AF0:n$G(J
$@$O$"$j$^$;$s!#(J

$@!t(J char $@7?$N%S%C%H?t$H(J int $@7?$N%S%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