2011-01-12 13 views

答えて

0
define(`foo', `esyscmd(`python -c "import sys; sys.stdout.write(chr($1))"')') dnl 
foo(`42') 

の値と出力1バイトは次のように拡張されます:しかし、チートの少しだ

* 

たとえば。

0

GNU m4 there is a format macroでは、C関数printfの後にモデル化されています。

 
% gm4 
define(`chr', `format(`%c', `$1')')dnl 
42 is chr(`42') 
42 is * 

これは、FreeBSDに同梱されているm4では機能しません。

+0

興味深いことに、バイト0(出力なし)では機能しません。 – ithkuil

関連する問題