08.11.2014 Views

c_kitap

c_kitap

c_kitap

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C ve Sistem Programcıları Derneği - C Ders Notları - Necati Ergin<br />

sistemindeki değerine geri dönüyor. İşleve gönderilen karakter, onaltılık sayı sistemine<br />

ilişkin bir karakter değilse, -1 değeri döndürülüyor.<br />

#include <br />

#include <br />

int get_hex_val(int ch)<br />

{<br />

ch = toupper(ch);<br />

if (isdigit(ch))<br />

return ch - '0';<br />

if (ch >= 'A' && ch

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!