libc 0.0.10 copy "libc: ^0.0.10" to clipboard
libc: ^0.0.10 copied to clipboard

Dart 1 only

The C standard library wrapper (currently only header files) for the "binary interop" and "binary types".

libc #

The C standard library wrapper (currently only header files) for the "binary interop" and "binary types".

Version: 0.0.10

Warning #

The libc library works directly with the binary data of the operating system!

Purpose #

Intended to simplify the use of the following software:

Currently contains mostly empty headers. Types will be added as needed.
Function prototypes will be added in the near future.
Macro definitions possibly will be added in the future.

Header files #

  • assert.h
  • complex.h
  • ctype.h
  • errno.h
  • fenv.h
  • float.h
  • inttypes.h
  • iso646.h
  • limits.h
  • locale.h
  • math.h
  • setjmp.h
  • signal.h
  • stdarg.h
  • stdbool.h
  • stddef.h
  • stdint.h
  • stdio.h
  • stdlib.h
  • string.h
  • tgmath.h
  • time.h
  • wchar.h
  • wctype.h

Example: #

import "package:libc/headers.dart";
import "package:libc/libc.dart";
import "package:binary_interop/binary_interop.dart";

void main() {
  var types = new BinaryTypes();
  var helper = new BinaryTypeHelper(types);
  helper.addHeaders(LIBC_HEADERS);
  var libc = loadLibC(types);
  libc.printf("Hello, library '%s'!\n", ["libc"]);
}

0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

The C standard library wrapper (currently only header files) for the "binary interop" and "binary types".

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

binary_interop

More

Packages that depend on libc