On Thu, 21 Apr 2016 20:31:45 -0700, Tom Brennan wrote:

>Years ago I wrote some assembler macros and subroutines to simulate C
>string routines, including printf.  I seem to remember having logic that
>would scan the next word in the source string looking for a trailing S,
>and would drop it if the number displayed was 1.  For example:
>
>   #PRINTF 'You have %d records',COUNT
>
>... would result in good grammar no matter what number was displayed.

But
#PRINTF 'You have %d potatoes',COUNT

is harder to get right, not to mention

#PRINTF 'There are %d cacti',COUNT

or
'The meeting was attended by %d men'

-- 
Tom Marchant

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to