strncat
v1.0.3
Published
A Javascript port of the strncat C function.
Maintainers
Readme
strncat
A port of the strncat C or C++ function.
strncat appends a specified amount of characters from the start of one string to the end of another.
Install
npm install --save strncatUsage
Usage is very similar to that of the original function.
Javascript
const { strncat } = require("strncat");
let result = strncat("foo", "barman", 3);
// result = "foobar"Typescript
import { strncat } from "strncat";
let result = strncat("foo", "barman", 3);
// result = "foobar"