Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Character-codes/AWK/character-codes.awk
Normal file
13
Task/Character-codes/AWK/character-codes.awk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function ord(c)
|
||||
{
|
||||
return chmap[c]
|
||||
}
|
||||
BEGIN {
|
||||
for(i=0; i < 256; i++) {
|
||||
chmap[sprintf("%c", i)] = i
|
||||
}
|
||||
print ord("a"), ord("b")
|
||||
printf "%c %c\n", 97, 98
|
||||
s = sprintf("%c%c", 97, 98)
|
||||
print s
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue