Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
raw2c.pl
Package: tcpmp.rar [view]
Upload User: wstnjxml
Upload Date: 2014-04-03
Package Size: 7248k
Code Size: 0k
Category:
Windows CE
Development Platform:
C/C++
- #!/usr/bin/perl -w
- # Turns binary files into C source code (static const unsigned char arrays).
- use strict;
- for (@ARGV) {
- open INPUT, $_ and binmode INPUT or die "$_: $!n";
- s!.*[/\]!!;
- y/0-9A-Za-z/_/c;
- print "static const unsigned char ${_}[] = {nt";
- my $buf;
- print join ', ', map sprintf('0x%02X', $_), unpack 'C*', $buf
- if read INPUT, $buf, 16;
- print ",nt", join ', ', map sprintf('0x%02X', $_), unpack 'C*', $buf
- while read INPUT, $buf, 16;
- close INPUT;
- print "n};n"
- }