|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Functions for incrementing filename indices. More...
#include <stdio.h>Go to the source code of this file.
Functions | |
| void | IncrementFilenameIndex (char *f, int len) |
| void | ResetFilenameIndex (char *f, int len) |
Functions for incrementing filename indices.
Definition in file IncrementFilename.c.
| void IncrementFilenameIndex | ( | char * | f, |
| int | len | ||
| ) |
Increment the output filename of the form op_nnnnn.dat by 1,
i.e., the number represented by the string nnnnn is incremented by 1.
Increment a character string representing an integer by 1. For example: "00002" -> "00003"; "3421934" -> "3421935"; "999" -> "000". The string can be of arbitrary length.
| f | Character string representing the integer |
| len | Length of the string |
Definition at line 46 of file IncrementFilename.c.
| void ResetFilenameIndex | ( | char * | f, |
| int | len | ||
| ) |
Resets the index to "0000..." of a desired length.
| f | Character string representing the integer |
| len | Length of the string |
Definition at line 64 of file IncrementFilename.c.