str.c (e1b06f76ad35ce2a89fc667d1feb3b2de35f6e0a) str.c (bebe2cf65d55febe21a5af8db2bd2e168caaa2e7)
1
2/*
3 We define the string operations here. The reason we just do not use
4 the standard string routines in the PETSc code is that on some machines
5 they are broken or have the wrong prototypes.
6
7*/
8#include <petscsys.h> /*I "petscsys.h" I*/
9#if defined(PETSC_HAVE_STRING_H)
10#include <string.h> /* strstr */
11#endif
12#if defined(PETSC_HAVE_STRINGS_H)
13# include <strings.h> /* strcasecmp */
14#endif
15
16#undef __FUNCT__
17#define __FUNCT__ "PetscStrToArray"
18/*@C
1
2/*
3 We define the string operations here. The reason we just do not use
4 the standard string routines in the PETSc code is that on some machines
5 they are broken or have the wrong prototypes.
6
7*/
8#include <petscsys.h> /*I "petscsys.h" I*/
9#if defined(PETSC_HAVE_STRING_H)
10#include <string.h> /* strstr */
11#endif
12#if defined(PETSC_HAVE_STRINGS_H)
13# include <strings.h> /* strcasecmp */
14#endif
15
16#undef __FUNCT__
17#define __FUNCT__ "PetscStrToArray"
18/*@C
19 PetscStrToArray - Seperates a string by a charactor (for example ' ' or '\n') and creates an array of strings
19 PetscStrToArray - Separates a string by a charactor (for example ' ' or '\n') and creates an array of strings
20
21 Not Collective
22
23 Input Parameters:
24+ s - pointer to string
25- sp - separator charactor
26
27 Output Parameter:

--- 1228 unchanged lines hidden ---
20
21 Not Collective
22
23 Input Parameters:
24+ s - pointer to string
25- sp - separator charactor
26
27 Output Parameter:

--- 1228 unchanged lines hidden ---