Initial commit
Made-with: Cursor
This commit is contained in:
15
astral-service/static/lib/libredwg/examples/rsdecode.c
Normal file
15
astral-service/static/lib/libredwg/examples/rsdecode.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
unsigned char block[255];
|
||||
|
||||
main ()
|
||||
{
|
||||
int len, err;
|
||||
while (!feof (stdin))
|
||||
{
|
||||
len = fread (block, 1, 255, stdin);
|
||||
err = rs_decode_block (block, 1);
|
||||
fwrite (block, 1, 239, stdout);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user