You are not logged in.

#1 2017-05-27 19:43:37

ali-libre
Member
Registered: 2015-03-19
Posts: 27

[solved]printf %c

i'm want to send number in byte.
in C printf("%c" , 76) send "L"
in shell(zsh and bash) printf "%c" 76 output will be "7"
another option work correctly
note : number can be 0-255 and will send to a device

Last edited by ali-libre (2017-05-27 20:44:12)

Offline

#2 2017-05-27 19:50:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [solved]printf %c


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-05-27 19:53:15

ali-libre
Member
Registered: 2015-03-19
Posts: 27

Re: [solved]printf %c

i was searched 4 day.... sad

Last edited by ali-libre (2017-05-27 19:53:54)

Offline

Board footer

Powered by FluxBB