Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

numas13/csz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safer wrappers for nul-terminated C strings.

This crate uses C functions from the C standard library:

  • memchr
  • strlen
  • strstr
  • strcmp
  • strcasecmp (stricmp on windows)
  • malloc
  • free
  • realloc

Features

  • link_libc (enabled by default) - links to the C standard library. Disable the feature if you want to manually implement C functions.
  • libc - use libc crate.
  • alloc - enables linking to the alloc crate.

Usage

Add the following to your Cargo.toml:

[dependencies]
csz = "0.1"

Rust version support

The minimum supported Rust toolchain version is currently Rust 1.64.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages