OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tcl/] [doc/] [incr.n] - Diff between revs 578 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 578 Rev 1765
'\"
'\"
'\" Copyright (c) 1993 The Regents of the University of California.
'\" Copyright (c) 1993 The Regents of the University of California.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
'\"
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
'\"
'\" RCS: @(#) $Id: incr.n,v 1.1.1.1 2002-01-16 10:25:24 markom Exp $
'\" RCS: @(#) $Id: incr.n,v 1.1.1.1 2002-01-16 10:25:24 markom Exp $
'\"
'\"
.so man.macros
.so man.macros
.TH incr n "" Tcl "Tcl Built-In Commands"
.TH incr n "" Tcl "Tcl Built-In Commands"
.BS
.BS
'\" Note:  do not modify the .SH NAME line immediately below!
'\" Note:  do not modify the .SH NAME line immediately below!
.SH NAME
.SH NAME
incr \- Increment the value of a variable
incr \- Increment the value of a variable
.SH SYNOPSIS
.SH SYNOPSIS
\fBincr \fIvarName \fR?\fIincrement\fR?
\fBincr \fIvarName \fR?\fIincrement\fR?
.BE
.BE
.SH DESCRIPTION
.SH DESCRIPTION
.PP
.PP
Increments the value stored in the variable whose name is \fIvarName\fR.
Increments the value stored in the variable whose name is \fIvarName\fR.
The value of the variable must be an integer.
The value of the variable must be an integer.
If \fIincrement\fR is supplied then its value (which must be an
If \fIincrement\fR is supplied then its value (which must be an
integer) is added to the value of variable \fIvarName\fR;  otherwise
integer) is added to the value of variable \fIvarName\fR;  otherwise
1 is added to \fIvarName\fR.
1 is added to \fIvarName\fR.
The new value is stored as a decimal string in variable \fIvarName\fR
The new value is stored as a decimal string in variable \fIvarName\fR
and also returned as result.
and also returned as result.
.SH KEYWORDS
.SH KEYWORDS
add, increment, variable, value
add, increment, variable, value
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.