source:
branches/1.7/src/core/RpUtilsFInterface.cc
@
6313
Last change on this file since 6313 was 5679, checked in by ldelgass, 9 years ago | |
---|---|
|
|
File size: 1.2 KB |
Line | |
---|---|
1 | /* |
2 | * ---------------------------------------------------------------------- |
3 | * INTERFACE: Fortran Rappture Utils Source |
4 | * |
5 | * ====================================================================== |
6 | * AUTHOR: Derrick Kearney, Purdue University |
7 | * Copyright (c) 2004-2012 HUBzero Foundation, LLC |
8 | * |
9 | * See the file "license.terms" for information on usage and |
10 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
11 | * ====================================================================== |
12 | */ |
13 | |
14 | #include "RpUtils.h" |
15 | #include "RpUtilsFInterface.h" |
16 | #include "RpUtilsFStubs.c" |
17 | #include "RpFortranCommon.h" |
18 | |
19 | #ifdef __cplusplus |
20 | extern "C" int rp_utils_progress(int *percent, char *text, int text_len); |
21 | #endif |
22 | |
23 | #include <stdlib.h> |
24 | |
25 | /**********************************************************************/ |
26 | // FUNCTION: rp_utils_progress(int percent, const char* text, int text_len) |
27 | /// Report the progress of the application. |
28 | /** |
29 | */ |
30 | |
31 | int |
32 | rp_utils_progress(int *percentPtr, char *text, int text_len) |
33 | { |
34 | const char* inText; |
35 | int retVal; |
36 | inText = null_terminate(text, text_len); |
37 | retVal = Rappture::Utils::progress(*percentPtr, inText); |
38 | free((void*)inText); |
39 | inText = NULL; |
40 | return retVal; |
41 | } |
42 |
Note: See TracBrowser
for help on using the repository browser.