4.21 remove()

This is the standard C library remove() function from stdio.h.


int remove(const char *filename);


The default implementation of this function uses semihosting.

remove() causes the file whose name is the string pointed to by filename to be removed. Subsequent attempts to open the file result in failure, unless it is created again. If the file is open, the behavior of the remove() function is implementation-defined.


Returns zero if the operation succeeds or nonzero if it fails.

Non-ConfidentialPDF file icon PDF versionARM DUI0475M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.