...
| Code Block | ||
|---|---|---|
| ||
char const *old = /* ... */;
char const *new = /* ... */;
if (rename(old, new) != 0) {
/* Handle Error */
}
|
If the file named by new exists at the time of the call to rename(), the result is implementation-defined.
...
...
| Code Block | ||
|---|---|---|
| ||
char const *old = /* ... */;
char const *new = /* ... */;
if (rename(old, new) != 0) {
/* Handle Error */
}
|
If the file named by new exists at the time of the call to rename(), the result is implementation-defined.
...