Re: strtoint
>>trouble me. Why not make an array of the set of characters you want[color=blue][color=green]
>>to be in the random string and then randomly select from the set of[/color]
>
>Well they aren't so magic 65 is equal to A and 25 is the range
>of the Alphabet :-) so the generated string will be between
>(A-Z)[/color]
Yes, they *ARE* magic.
C does not guarantee ANY of:
'A' == 65
'A' + 25 == 'Z'
The character set is ASCII.
The alphabet contains 25 or 26 letters.
There are no unaccented letters in the character set.
Alphabetic characters form a contiguous block of consecutive codes.
Gordon L. Burditt
>>trouble me. Why not make an array of the set of characters you want[color=blue][color=green]
>>to be in the random string and then randomly select from the set of[/color]
>
>Well they aren't so magic 65 is equal to A and 25 is the range
>of the Alphabet :-) so the generated string will be between
>(A-Z)[/color]
Yes, they *ARE* magic.
C does not guarantee ANY of:
'A' == 65
'A' + 25 == 'Z'
The character set is ASCII.
The alphabet contains 25 or 26 letters.
There are no unaccented letters in the character set.
Alphabetic characters form a contiguous block of consecutive codes.
Gordon L. Burditt
Comment