[Tfug] 64 bit file server?

Paul Scott waterhorse at ultrasw.com
Fri Jul 8 18:05:33 MST 2005


Brian Murphy wrote:

> Quoting Stephen Hooper <schooper at email.arizona.edu>:
>
>> I am given a number by a programmer (like me :}), that is something like
>> 1067.  Which is reasonable from the programmer's perspective because he
>> he just wants to read (seek, or whatever) to byte 1067 of the file.
>>
>> So (assuming a 1K block):
>>
>> 1067 /mod 1024 ( (no such C animal as /mod that I know) 1 43 )
>
>
>
> % is the C modulo operator.

But /mod (at least in Forth) returns both the quotient and the remainder.

1067 1024 /mod leaves 1 and 43 on the stack.  (Actually I forget which 
one is on top).

Paul Scott



More information about the tfug mailing list