Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexreg/libsptr
Library for using smart pointers in the C language (works with any GCC-compatible compiler)
https://github.com/alexreg/libsptr
Last synced: about 1 month ago
JSON representation
Library for using smart pointers in the C language (works with any GCC-compatible compiler)
- Host: GitHub
- URL: https://github.com/alexreg/libsptr
- Owner: alexreg
- Created: 2015-07-15T02:55:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-27T01:00:20.000Z (over 9 years ago)
- Last Synced: 2024-04-13T16:22:45.881Z (7 months ago)
- Language: C
- Homepage: https://bitbucket.org/alexreg/libsptr
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
libsptr
=======*libsptr* is a library for using **smart pointers** in the C language, which works with any [GCC](GNU GCC)-compatible compiler.
The library is inspired by Franklin Mathieu's [libcsptr][GitHub Snaipe/libcsptr] library.
Building
--------**Note:** To utilise just the core functionality, it is not strictly necessary to build the library; simply include `sptr.h` in the code that uses it.
To build the library, simply run `./build` from the root directory of the project. This produces all output in the `output` subdirectory.
Installing
----------To install the library, first build it, then run `./install` as superuser from the root directory of the project. This will install the library under the default prefix directory `/usr/local`.
A custom prefix directory can be specified by setting the `INSTALL_PREFIX` environment variable before installing.
Usage
-----The manual page for the API is `sptr(3)`.
A PDF version of the manual page may be found [here](https://bitbucket.org/alexreg/libsptr/downloads/sptr.pdf).
[GNU GCC]: https://gcc.gnu.org
[GitHub Snaipe/libcsptr]: https://github.com/Snaipe/libcsptr