Skip to content

Glossary: C Basics

strcpy

A function that copies a string but never checks the destination's size, so a long source writes past its end. `snprintf` is a safer way to copy.

Where the book teaches it

Related terms

snprintfUndefined behavior