larry@wiley.UUCP (Larry Gouger) (02/12/88)
I am creating an LDEF to display the files on a remote machine. I am
writing the LDEF mostly in MPW C along with an assemble header.
Each Cell in the list is of the form...
struct {
char name[80];
unsigned long length;
char moddate[28];
} CellData;
...and I want it printed into the cell in the following way...
File_name_of_DB_1 53,454,454 Mon Jan 11 13:34:12 1988
^
To format the number I have been doing the following...
unsigned long number;
char formatted_number[11];
short index,digit;
formatted_number[10] = '\0';
for (index = 9; (index >= 0) && (number > 0); index--){
if ((index == 5) || (index == 1))
formatted_number[index] = ',';
else {
digit = number % 10;
formatted_number[index] = '0' + digit;
number /= 10;
}
}
When I try to link this and its assembly header into an LDEF, I am
told that ULMODT and ULDIVT cannot be found by the linker.
What I have tried:
o I added "{CLibraries}"CSANELib.o and "{CLibraries}"Math.o to the
list of libraries being linked together. The linker lists them
as being unnecessary.
o Yes, I am using 2.0.2 of both MPW and C
Where are operations on unsigned longs handled?
--
-larry. -------------------------------
Larry Gouger TRW Inc., CoyoteWorks
Redondo Beach, CA
...!{uunet,cit-vax,trwrb}!wiley!larry