Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
•Instrument Editor/IE PrintUtilities.c
#include <QuickDraw.h> |
#include "BigEasyTextish.h" |
#include "IE PrintUtilities.h" |
void PrintPlural(long x, StringPtr zero,StringPtr s1,StringPtr pluralizer, StringPtr s2) |
{ |
if(x) |
DrawNum(x); |
else |
{ |
if(zero) |
DrawString(zero); |
else |
DrawString("\pNo"); |
} |
DrawChar(' '); |
DrawString(s1); |
if(x != 1 && x != -1) |
{ |
if(pluralizer) |
DrawString(pluralizer); |
else |
DrawChar('s'); |
} |
if(s2) |
DrawString(s2); |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-03-19