view wisdom/trunc @ 10991:2a49f15d9293

<wob_jonas> perl -e {$f="wisdom/rules of wisdom";open$i,"<",$f or die;local$/;$s=<$i>;$s=~s/with no space at the end/and end in a newline with no space before that/ or die;$s=~s/\\n\\z// or die;print$s;open$o,">",$f;print$o $s or die;}
author HackBot
date Fri, 02 Jun 2017 10:25:48 +0000
parents a91625d539a2
children
line wrap: on
line source

The trunc and truncf functions (of C99 and C++11) are actually supported by the MS compiler (starting from the 2013), only strangely undocumented.