AminetAminet
Search:
84706 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/lib/buffer.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Tiny C string manipulation library
Author:TJ Holowaychuk
Uploader:Carsten Larsen (carsten larsen mail com)
Type:dev/lib
Version:0.4.0
Architecture:generic; m68k-amigaos
URL:https://github.com/clibs/buffer.git
Date:2020-05-03
Download:http://aminet.net/dev/lib/buffer.lha - View contents
Readme:http://aminet.net/dev/lib/buffer.readme
Downloads:4332

Installation

    Copy buffer.h and buffer.c to you source code tree.

API

    buffer_t *
    buffer_new();

    buffer_t *
    buffer_new_with_size(size_t n);

    buffer_t *
    buffer_new_with_string(char *str);

    buffer_t *
    buffer_new_with_string_length(char *str, size_t len);

    buffer_t *
    buffer_new_with_copy(char *str);

    size_t
    buffer_size(buffer_t *self);

    size_t
    buffer_length(buffer_t *self);

    void
    buffer_free(buffer_t *self);

    int
    buffer_prepend(buffer_t *self, char *str);

    int
    buffer_append(buffer_t *self, char *str);

    int
    buffer_equals(buffer_t *self, buffer_t *other);

    ssize_t
    buffer_indexof(buffer_t *self, char *str);

    buffer_t *
    buffer_slice(buffer_t *self, size_t from, ssize_t to);

    ssize_t
    buffer_compact(buffer_t *self);

    void
    buffer_fill(buffer_t *self, int c);

    void
    buffer_clear(buffer_t *self);

    void
    buffer_trim_left(buffer_t *self);

    void
    buffer_trim_right(buffer_t *self);

    void
    buffer_trim(buffer_t *self);

    void
    buffer_print(buffer_t *self);

License

    MIT


Contents of dev/lib/buffer.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga]                   1826    6194  29.5% -lh5- 58dc May  1 12:30 buffer/buffer.c
[Amiga]                    460    1416  32.5% -lh5- ddbf May  1 12:30 buffer/buffer.h
[Amiga]                    438    1392  31.5% -lh5- f1c9 May  1 12:30 buffer/buffer.readme
[Amiga]                    413     906  45.6% -lh5- 2a68 May  1 12:30 buffer/History.md
[Amiga]                    136     163  83.4% -lh5- ad9e May  1 12:30 buffer/Makefile
[Amiga]                    355    1113  31.9% -lh5- 7422 May  1 12:30 buffer/Readme.md
[Amiga]                  48958   92824  52.7% -lh5- 792a May  1 12:30 buffer/test
[Amiga]                   1146    5847  19.6% -lh5- 7b7c May  1 12:30 buffer/test.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         8 files   53732  109855  48.9%            May  3 16:00

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>