Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×

Comment: Re:Hmm (Score 1) 485

by fugu13 (#13362713) Attached to: Quake 3: Arena Source GPL'ed
It constructs filenames with certain numbers; if the number is outside a certain range (0 to 9999) it uses a default, but if not, it makes a file named demo#### where #### is the number left-filled with zeros. It does this by using a common rounding trick (based on ints being truncated).

It only generates the filenames deterministically from information given it, so its just a utility function for constructing names.

C for yourself.

Working...