From Electron Cloud
Revision as of 18:40, 2 January 2007 by Ecloud (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To convert a hex string like


to C array initialization like this:

0xFF, 0x65, 0x12, 0x34

using find and replace in Scite:

Find what: \([A-F0-9][A-F0-9]\)
Replace with: 0x\1,_