decstring.c.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. decstring.c
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='decout.c.html' title=' decout.c '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='DeviceIdent.c.html' title=' DeviceIdent.c '>NEXT</a>]
  19. </div>
  20. <pre>
  21. /*====================================================================*
  22. *
  23. * char * decstring ( char buffer [], size_t length, void const * memory, size_t extent);
  24. *
  25. * memory.h
  26. *
  27. * decode a memory region into a decimal character buffer and
  28. * return the buffer address;
  29. *
  30. * allow four string characters for each memory byte; this means
  31. * that the buffer must hold at least four characters or nothing
  32. * will be decoded;
  33. *
  34. * Motley Tools by Charles Maier &lt;cmaier@cmassoc.net&gt;;
  35. * Copyright (c) 2001-2006 by Charles Maier Associates;
  36. * Licensed under the Internet Software Consortium License;
  37. *
  38. *--------------------------------------------------------------------*/
  39. #ifndef DECSTRING_SOURCE
  40. #define DECSTRING_SOURCE
  41. #include &lt;stdint.h&gt;
  42. #include &quot;../tools/memory.h&quot;
  43. char * decstring (char buffer [], size_t length, void const * memory, size_t extent)
  44. {
  45. decdecode (memory, extent, buffer, length);
  46. return ((char *)(buffer));
  47. }
  48. #endif
  49. </pre>
  50. <div class='footerlink'>
  51. [<a href='decout.c.html' title=' decout.c '>PREV</a>]
  52. [<a href='toolkit.html' title=' Index '>HOME</a>]
  53. [<a href='DeviceIdent.c.html' title=' DeviceIdent.c '>NEXT</a>]
  54. </div>
  55. </body>
  56. </html>