home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   SYNC_PROGRAMMING      Synchronet/Baja/XSDK Programming      49,116 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 47,422 of 49,116   
   Deucе to Git commit to main/sbbs/master   
   src/xpdev/stbuf.c stbuf.hsrc/xpdev/objec   
   07 Oct 25 19:17:57   
   
   TZUTC: -0700   
   MSGID: 52830.syncprog@1:103/705 2d4bce33   
   PID: Synchronet 3.21a-Linux master/88b423313 Sep 29 2025 GCC 12.2.0   
   TID: SBBSecho 3.30-Linux master/88b423313 Sep 29 2025 GCC 12.2.0   
   BBSID: VERT   
   CHRS: UTF-8 4   
   FORMAT: flowed   
   https://gitlab.synchro.net/main/sbbs/-/commit/fb578e8021cd323e6b4e76a8   
   Added Files:   
   	src/xpdev/stbuf.c stbuf.h   
   Modified Files:   
   	src/xpdev/objects.mk xpdev.vcxproj xpdev_mt.vcxproj   
   Log Message:   
   Add a new stbuf.[ch] object   
      
   This provides an API to manipulate buffers in a memory safe way.   
   The guarantee there is a NUL after the buffer contents, so they   
   can be passed to C string functions without possibly out of bounds   
   reads (though they support embedded NULs, so are subject to truncation   
   in that case).   
      
   Buffer memory is by default managed with realloc(), but you can   
   create a buffer object from statically allocated memory as well, and   
   they prevent buffer overflows.   
      
   The buffer manipulation functions are convenience wrappers around   
   a repl() function that replaces a specified number of bytes in the   
   buffer at a specific location with a specified number of new bytes.   
      
   With this, the whole set of: stbuf_[mem|str|][repl|cpy|cat|ins]()   
   functions are available. The source for stbuf_mem*() is a void *   
   with a size_t size, the source for stbuf_str*() is a C string,   
   and the source for functions without this name component is a stbuf.   
      
   The *repl() functions do the full repl() API, cpy copies the source   
   as the only data in the destination, cat appends to the end of the   
   destination buffer, and ins inserts into the middle of the buffer.   
      
   I've been wishing we had something like this fora while, and now   
   we do. :D   
   --- SBBSecho 3.30-Linux   
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)   
   SEEN-BY: 10/0 1 102/401 103/1 705 105/81 106/201 124/5016 128/187   
   SEEN-BY: 129/14 153/7715 154/110 214/22 218/0 1 215 610 700 810 226/30   
   SEEN-BY: 227/114 229/110 206 317 400 426 428 470 700 705 266/512 280/464   
   SEEN-BY: 291/111 301/1 320/219 322/757 342/200 396/45 460/58 633/280   
   SEEN-BY: 712/848 902/26 5075/35   
   PATH: 103/705 218/700 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca