---
name: "zip_rename"
section: "3"
platform: "linux"
package: "libzip"
version: "1.11.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/zip_rename"
---

# zip\_rename(3)

rename file in zip archive (obsolete interface)

## NAME

**zip\_rename** – rename file in zip archive (obsolete interface)

## LIBRARY

libzip (-lzip)

## SYNOPSIS

**#include \<zip.h\>**

*int*\

**zip\_rename**(*zip\_t \*archive*, *zip\_uint64\_t index*, *const char \*name*);

## DESCRIPTION

**zip\_rename**() is the obsolete version of [zip\_file\_rename(3)](/zip_file_rename/3.md). It is the same as calling [zip\_file\_rename(3)](/zip_file_rename/3.md) with an empty flags argument.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_file\_rename(3)](/zip_file_rename/3.md)

## HISTORY

**zip\_rename**() was added in libzip 0.6. In libzip 0.10 the type of *index* was changed from *int* to *zip\_uint64\_t*. It was deprecated in libzip 0.11, use **zip\_file\_rename**() instead.

## AUTHORS

Dieter Baron ⟨*dillo@nih.at*⟩ and Thomas Klausner ⟨*wiz@gatalith.at*⟩
