Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ Linux C source code (Ascii HexToBinary: Converts hexadecimal string format ASCII codes)     - Java multithreading easy to confuse the concept (Programming)

- Build Eclipse + Maven + Scala-IDEA the Scala Web development environment (Server)

- OpenResty load balancing MySQL (Database)

- Configuring Proxy on a Unix terminal, accelerate Android Studio Construction (Linux)

- Oracle 11g upgrade PSU detailed steps (Database)

- Java developers question (Programming)

- Go powerful development server simple example (Server)

- Android Fragment really fully resolve (Programming)

- ASM required disk format process in Solaris platforms (Linux)

- Mind mapping software installed in CentOS 7 in XMind (Linux)

- C ++ Learning Notes: references (Programming)

- Ubuntu font settings: Using Windows Font (Linux)

- Installation and Configuration ISC DHCP server on Debian Linux (Server)

- MySQL view (Database)

- Ubuntu 14.04 Nvidia graphics driver installation and settings (Linux)

- Paint with Vim (Linux)

- CentOS7 boot systemd introduction and use of management (Linux)

- Using IPFilter bridge filter in the FreeBSD system (Linux)

- Java class HashSet (Programming)

- Fast Sort Algorithms (Programming)

 
         
  Linux C source code (Ascii HexToBinary: Converts hexadecimal string format ASCII codes)
     
  Add Date : 2018-11-21      
         
       
         
  Short n Ascii Hex To Binary (
unsigned char * vspSourceStr,
short vnSourceStrL,
unsigned char * vspDestStr) {
if (vnSourceStrL% 2)
return -1;
for (; vnSourceStrL> 0; vnSourceStrL - = 2) {
if (* vspSourceStr> = '0' &&
* VspSourceStr <= '9')
* VspDestStr = ((* vspSourceStr ++) - '0') * 16;
else if (* vspSourceStr> = 'a' &&
* VspSourceStr <= 'f')
* VspDestStr = ((* vspSourceStr ++) - 'a' + 10) * 16;
else if (* vspSourceStr> = 'A' &&
* VspSourceStr <= 'F')
* VspDestStr = ((* vspSourceStr ++) - 'A' + 10) * 16;
else
return -1;
if (* vspSourceStr> = '0' &&
* VspSourceStr <= '9')
(* VspDestStr ++) + = ((* vspSourceStr ++) - '0');
else if (* vspSourceStr> = 'a' &&
* VspSourceStr <= 'f')
(* VspDestStr ++) + = ((* vspSourceStr ++) - 'a' + 10);
else if (* vspSourceStr> = 'A' &&
* VspSourceStr <= 'F')
(* VspDestStr ++) + = ((* vspSourceStr ++) - 'A' + 10);
else
return -1;
} / * End of for * /
return 0;
} / * End of nMAsciiHexToBinary * /
     
         
       
         
  More:      
 
- Use Epoll develop high-performance application server on Linux (Server)
- The most concise explanation of JavaScript closures (Programming)
- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)
- To install and use Docker under linux (Server)
- The several technical presentation Raid under Linux (Linux)
- Browser caching mechanism on the analysis (Linux)
- Create the container and run the application Docker (Server)
- Atlassian Linux Shell Scripting the confluence remote backup methods (Linux)
- C # mobile side and PC-side data exchange (Database)
- Use Swift remove the spaces in the string (Programming)
- Linux System Getting Started Learning: hard disk partition, and to deal with traps (Linux)
- Minimum period string problem (Programming)
- CMake Quick Start Tutorial (Linux)
- Oracle 11g RAC manually playing GI PSU patch (11.2.0.4.8) (Database)
- Merge Sort (Programming)
- Use the top command (Linux)
- Android code performance optimization tips (Programming)
- How to choose the first programming language based on the life you want (Programming)
- 8 Docker knowledge you may not know (Server)
- CentOS and RHEL installation under GAMIT10.6 (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.