Skip to content
Snippets Groups Projects
  1. Jan 18, 2021
    • Rob Swindell's avatar
      Change STRERROR() to be just an alias for strerror() on all platforms · 0dec21c9
      Rob Swindell authored
      Its a terrible idea to modify the return value of strerror() on any platform. strerror() can (and often does) return immutable string constants - don't try to modify that string even if it does end in trailing white-space (find another solution to that). This change only affects non-*nix builds since we were already doing the right thing for *nix.
      0dec21c9
  2. Aug 16, 2020
  3. Aug 08, 2020
  4. Aug 03, 2020
  5. Apr 14, 2020
  6. Mar 22, 2020
  7. Sep 10, 2019
  8. Apr 11, 2019
  9. Jul 23, 2018
  10. Jul 20, 2018
    • rswindell's avatar
      Fixed strcasestr() for Windows - oops. · 491b9fa1
      rswindell authored
      Created byte_estimate_to_str(), much like byte_count_to_str(), except the
      byte count is rounded to the nearest tera/giga/mega/kilo-byte
      (technically tebi/gibi/mebi/kibi-byte, but ugh, I'm old-sk00l!).
      491b9fa1
  11. Jul 19, 2018
  12. Feb 16, 2018
  13. Nov 05, 2017
    • rswindell's avatar
      Created duration_to_vstr() - like duration_to_str(), but it appends a space · 5d2f6c7c
      rswindell authored
      then a clarifying or modifying word (year[s], month[s], day[s], etc.).
      parse_byte_count() and parse_duration() now support a space between the
      numeric value (decimal digits) and the modifier. Hopefully this doesn't break
      anything, but it makes parse_duration() compatible with the strings generated
      with duration_to_vstr(). We might want a verbose version of byte_count_to_str()
      in the future, so I figured it made sense to go ahead and add the white-space
      skipping/parsing to prase_byte_count() now.
      5d2f6c7c
  14. Nov 19, 2016
  15. May 26, 2016
  16. Jan 18, 2016
  17. Jan 11, 2016
  18. Sep 28, 2015
  19. Jun 23, 2014
  20. Apr 29, 2014
  21. Apr 25, 2012
  22. Oct 24, 2011
  23. Oct 18, 2011
  24. May 11, 2011
  25. Jun 03, 2010
  26. May 24, 2010
  27. Jan 14, 2009
    • deuce's avatar
      Make xp_randomize() return a void... this means we can now use the · cb517ef4
      deuce authored
      super-wonderfull srandomdev() where available.
      
      Where we can't, try to use /dev/urandom if possible...
      
      If that fails, start making stuff up...
      
      At some point, the Win32 build should use CryptGenRandom() which is slightly
      better on Windows NT/2K/XP and vastly better on Vista... not present on 9x
      apparently though.
      cb517ef4
  28. Feb 23, 2008
  29. Feb 22, 2008
  30. Sep 22, 2007
  31. Jul 11, 2007
  32. Aug 14, 2006
  33. Jun 04, 2006
  34. May 31, 2006
Loading