Changeset 1034059


Ignore:
Timestamp:
Oct 31, 2025, 11:50:55 AM (4 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
f5856ecd
Parents:
95330c33
Message:

add "clear" function to strstring

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/strstream.cfa

    r95330c33 r1034059  
    1010// Created On       : Thu Apr 22 22:24:35 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Apr 14 20:45:00 2025
    13 // Update Count     : 116
     12// Last Modified On : Sat Oct 11 15:10:56 2025
     13// Update Count     : 119
    1414//
    1515
     
    148148                abort();
    149149        } // if
     150        os.cursor$ = 0;
    150151        return os;
    151152} // write
     
    155156} // write
    156157
     158void clear( ostrstream & os ) {
     159        os.cursor$ = 0;
     160} // clear
    157161
    158162// *********************************** istrstream ***********************************
  • libcfa/src/strstream.hfa

    r95330c33 r1034059  
    1010// Created On       : Thu Apr 22 22:20:59 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Apr 14 20:57:15 2025
    13 // Update Count     : 61
     12// Last Modified On : Sat Oct 11 15:11:06 2025
     13// Update Count     : 62
    1414//
    1515
     
    7575void ?{}( ostrstream &, char buf[], size_t size );
    7676
     77void clear( ostrstream & os );
     78
    7779
    7880// *********************************** istrstream ***********************************
Note: See TracChangeset for help on using the changeset viewer.