Ak si dobre spomínam, tak pár ľudí na matfyze na predmete systémové programovanie také niečo robili (teraz neviem, či v assembleri, alebo v C), každopádne odporúčam pogoogliť, prípadne si prečítať
nejaké zdrojáky, alebo dokumentáciu a pod. Je to síce trochu vynaliezanie kolesa (už to pred tebou robilo X ľudí a z toho je Y dokonalých riešení), ale aspoň sa pocvičíš.
_________________
A. S. Tanenbaum píše:
The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice.