···11+/*
22+Bini license: BSD 3-Clause.
33+44+Copyright 2025 Emmeline Coats
55+66+Redistribution and use in source and binary forms, with or without
77+modification, are permitted provided that the following conditions are met:
88+99+1. Redistributions of source code must retain the above copyright notice, this
1010+ list of conditions and the following disclaimer.
1111+1212+2. Redistributions in binary form must reproduce the above copyright notice,
1313+ this list of conditions and the following disclaimer in the documentation
1414+ and/or other materials provided with the distribution.
1515+1616+3. Neither the name of the copyright holder nor the names of its contributors
1717+ may be used to endorse or promote products derived from this software
1818+ without specific prior written permission.
1919+2020+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
2121+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2222+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2323+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
2424+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2525+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2626+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2727+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2828+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2929+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030+*/
3131+132#ifndef bini_impl
233#define bini_impl
334#endif
+32
bini.h
···11#ifndef __bini__
22#define __bini__
3344+/* License at end of file. */
4556/* Used to add functions for version-specific types. */
67#define bini_c 1989
···427428 str[i] = bini_rc(bs);
428429 return n;
429430}
431431+432432+/*
433433+Bini license: BSD 3-Clause.
434434+435435+Copyright 2025 Emmeline Coats
436436+437437+Redistribution and use in source and binary forms, with or without
438438+modification, are permitted provided that the following conditions are met:
439439+440440+1. Redistributions of source code must retain the above copyright notice, this
441441+ list of conditions and the following disclaimer.
442442+443443+2. Redistributions in binary form must reproduce the above copyright notice,
444444+ this list of conditions and the following disclaimer in the documentation
445445+ and/or other materials provided with the distribution.
446446+447447+3. Neither the name of the copyright holder nor the names of its contributors
448448+ may be used to endorse or promote products derived from this software
449449+ without specific prior written permission.
450450+451451+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
452452+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
453453+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
454454+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
455455+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
456456+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
457457+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
458458+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
459459+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
460460+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
461461+*/
430462431463#endif /* bini_impl */
432464#endif /* __bini__ */
+30
readme
···4242 /* Close our stream, flushing+freeing the buffer and the stream itself. */
4343 bini_close(bs);
4444 }
4545+4646+License
4747+-------
4848+4949+Copyright 2025 Emmeline Coats
5050+5151+Redistribution and use in source and binary forms, with or without
5252+modification, are permitted provided that the following conditions are met:
5353+5454+1. Redistributions of source code must retain the above copyright notice, this
5555+ list of conditions and the following disclaimer.
5656+5757+2. Redistributions in binary form must reproduce the above copyright notice,
5858+ this list of conditions and the following disclaimer in the documentation
5959+ and/or other materials provided with the distribution.
6060+6161+3. Neither the name of the copyright holder nor the names of its contributors
6262+ may be used to endorse or promote products derived from this software
6363+ without specific prior written permission.
6464+6565+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
6666+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
6767+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
6868+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
6969+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
7070+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
7171+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
7272+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
7373+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7474+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.