Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.2 KiB

  1. // iert.h - Definitions, and Prototypes for the Internet Explorer
  2. // implementation of the c-runtime library.
  3. //
  4. // History:
  5. // Created on 16-May-1997 by Vince Roggero (vincentr)
  6. //
  7. #ifdef __cplusplus
  8. extern "C"
  9. {
  10. #endif
  11. /***
  12. *char *StrTokEx(pstring, control) - tokenize string with delimiter in control
  13. *
  14. *Purpose:
  15. * StrTokEx considers the string to consist of a sequence of zero or more
  16. * text tokens separated by spans of one or more control chars. the first
  17. * call, with string specified, returns a pointer to the first char of the
  18. * first token, and will write a null char into pstring immediately
  19. * following the returned token. when no tokens remain
  20. * in pstring a NULL pointer is returned. remember the control chars with a
  21. * bit map, one bit per ascii char. the null char is always a control char.
  22. *
  23. *Entry:
  24. * char **pstring - ptr to ptr to string to tokenize
  25. * char *control - string of characters to use as delimiters
  26. *
  27. *Exit:
  28. * returns pointer to first token in string,
  29. * returns NULL when no more tokens remain.
  30. * pstring points to the beginning of the next token.
  31. *
  32. *WARNING!!!
  33. * upon exit, the first delimiter in the input string will be replaced with '\0'
  34. *
  35. *******************************************************************************/
  36. char* __cdecl StrTokEx (char ** pstring, const char * control);
  37. /***
  38. * double StrToDbl(const char *str, char **strStop) - convert string to double
  39. *
  40. * Purpose:
  41. * To convert a string into a double. This function supports
  42. * simple double representations like '1.234', '.5678'. It also support
  43. * the a killobyte computaion by appending 'k' to the end of the string
  44. * as in '1.5k' or '.5k'. The results would then become 1536 and 512.5.
  45. *
  46. * Return:
  47. * The double representation of the string.
  48. * strStop points to the character that caused the scan to stop.
  49. *
  50. *******************************************************************************/
  51. double __cdecl StrToDbl(const char *strIn, char **strStop);
  52. #ifdef __cplusplus
  53. } // extern "C"
  54. #endif