MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sbuf_cpy

Function sbuf_cpy

freebsd/kern/subr_sbuf.c:594–603  ·  view source on GitHub ↗

* Copy a string into an sbuf. */

Source from the content-addressed store, hash-verified

592 * Copy a string into an sbuf.
593 */
594int
595sbuf_cpy(struct sbuf *s, const char *str)
596{
597
598 assert_sbuf_integrity(s);
599 assert_sbuf_state(s, 0);
600
601 sbuf_clear(s);
602 return (sbuf_cat(s, str));
603}
604
605/*
606 * Format the given argument list and append the resulting string to an sbuf.

Callers 5

devctl_notifyFunction · 0.85
devaddqFunction · 0.85
cpufreq_levels_sysctlFunction · 0.85
cpufreq_settings_sysctlFunction · 0.85
mount_devctl_eventFunction · 0.85

Calls 2

sbuf_clearFunction · 0.85
sbuf_catFunction · 0.85

Tested by

no test coverage detected