.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 17:52:15 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 2001-12-15, aeb .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH swab 3 "20 julho 2023" "Linux man\-pages 6.05.01" .SH NOME swab \- swap adjacent bytes .SH BIBLIOTECA Biblioteca C Padrão (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSE .nf \fB#define _XOPEN_SOURCE\fP /* Veja feature_test_macros(7) */ \fB#include \fP .PP \fBvoid swab(const void \fP\fIfrom\fP\fB[restrict .\fP\fIn\fP\fB], void \fP\fIto\fP\fB[restrict .\fP\fIn\fP\fB],\fP \fB ssize_t \fP\fIn\fP\fB);\fP .fi .SH DESCRIÇÃO The \fBswab\fP() function copies \fIn\fP bytes from the array pointed to by \fIfrom\fP to the array pointed to by \fIto\fP, exchanging adjacent even and odd bytes. This function is used to exchange data between machines that have different low/high byte ordering. .PP This function does nothing when \fIn\fP is negative. When \fIn\fP is positive and odd, it handles \fIn\-1\fP bytes as above, and does something unspecified with the last byte. (In other words, \fIn\fP should be even.) .SH "VALOR DE RETORNO" The \fBswab\fP() function returns no value. .SH ATRIBUTOS Para uma explicação dos termos usados nesta seção, consulte \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Atributo Valor T{ .na .nh \fBswab\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH PADRÕES POSIX.1\-2008. .SH HISTÓRICO POSIX.1\-2001, SVr4, 4.3BSD. .SH "VEJA TAMBÉM" \fBbstring\fP(3) .PP .SH TRADUÇÃO A tradução para português brasileiro desta página man foi criada por Valter Ferraz Sanches e André Luiz Fassone . .PP Esta tradução é uma documentação livre; leia a .UR https://www.gnu.org/licenses/gpl-3.0.html Licença Pública Geral GNU Versão 3 .UE ou posterior para as condições de direitos autorais. Nenhuma responsabilidade é aceita. .PP Se você encontrar algum erro na tradução desta página de manual, envie um e-mail para .MT debian-l10n-portuguese@lists.debian.org a lista de discussão de tradutores .ME .