Last change
on this file since 586 was 586, checked in by Eric.Larour, 16 years ago |
Added dakota parallel c code capability + Prognostic capability
|
File size:
381 bytes
|
Rev | Line | |
---|
[586] | 1 | /*!\file: suffix.cpp
|
---|
| 2 | * \brief get numeric suffix of a string
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifdef HAVE_CONFIG_H
|
---|
| 6 | #include "config.h"
|
---|
| 7 | #else
|
---|
| 8 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
| 9 | #endif
|
---|
| 10 |
|
---|
| 11 | #undef __FUNCT__
|
---|
| 12 | #define __FUNCT__ "suffix"
|
---|
| 13 |
|
---|
| 14 | int suffix(char* string){
|
---|
| 15 |
|
---|
| 16 | char* numeric=NULL;
|
---|
| 17 | int length;
|
---|
| 18 |
|
---|
| 19 | length=strlen(string);
|
---|
| 20 |
|
---|
| 21 | for(i=0;i<length;i++){
|
---|
| 22 | if isdigit(string[i])
|
---|
| 23 |
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.