01-31-2003
Standards
I have been asked to put together some coding standards for the project I am assigned to. I have found documented standards for C/C++, Java but was wondering if there is a good place for UNIX scripting (Korn/Bourne) standards?
Does anyone know of a good place to find information on scripting standards?
Thanks...
4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am looking for some coding standards for Unix Shell Scripting. Can anyone help me out in this?
Regards,
Himanshu (3 Replies)
Discussion started by: himanshu_s
3 Replies
2. Programming
I'm new to UNIX programming. I'm used to starting my program's versions at 1.0, but I look at all the UNIX programs out there and see things like 0.000.1 or 3.3.000 and I'm wondering what these things really mean. Do people just type anything they feel in there? Are things in pre-release... (6 Replies)
Discussion started by: hirni
6 Replies
3. Solaris
Hi All,
Thanks in advance for reading and any posts.
I was wondering if anyone has come across or can recomend or has any security standards that we could implement. We are running production Oracle systems on Solaris 8 boxes (which are global). We are after security considerations... (4 Replies)
Discussion started by: B14speedfreak
4 Replies
4. Programming
Hello Friends,
I am a newbie and have started using different compilers and tools to make myself familiar with their workings. I wanted to know that how compliant is gcc with the C++ standards. It is pretty obvious that no compiler is close to being completely compliant, but if there are some... (7 Replies)
Discussion started by: hthapar
7 Replies
swab(3) Library Functions Manual swab(3)
NAME
swab - Swaps bytes
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <unistd.h>
void swab(
const void *src,
void *dest,
ssize_t nbytes);
The following definition of the swab() function does not conform to current standards and is supported only for System V compatibility:
void swab(
const char *from,
char *to,
int nbytes);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
swab(): XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Points to the location of the string to copy. Points to the location to which the resulting string is copied. Specifies the number of
bytes to be copied. The nbytes parameter should have an even value. When the nbytes parameter is odd, the swab() function uses nbytes-1
instead. For the System V version of the swab() function, nbytes must also be non-negative. If nbytes is negative, nothing is done.
DESCRIPTION
The swab() function copies the number of bytes specified by the nbytes parameter from the location pointed to by the src parameter to the
array pointed to by the dest parameter, exchanging adjacent bytes. If copying takes place between objects that overlap, the behavior is
undefined.
RELATED INFORMATION
Standards: standards(5) delim off
swab(3)