f_cta_utils.h File Reference

String utility functions for FORTRAN / C compatibility. More...

#include <string.h>
#include "cta_system.h"
#include "cta_datatypes.h"
#include "cta_errors.h"

Go to the source code of this file.

Functions

int CTA_fstr2cstr (char *f_str, char *c_str, int len_f)
 Create C string from FORTRAN string.
int CTA_cstr2fstr (char *c_str, char *f_str, int len_f)
 Create FORTRAN string from C string.

Detailed Description

String utility functions for FORTRAN / C compatibility.

Definition in file f_cta_utils.h.


Function Documentation

int CTA_cstr2fstr ( char *  c_str,
char *  f_str,
int  len_f 
)

Create FORTRAN string from C string.

Parameters:
c_str I pointer to C string
f_str O buffer for receiving FORTRAN string
len_f I length of C string
Returns:
error status: always CTA_OK (no internal error check)
int CTA_fstr2cstr ( char *  f_str,
char *  c_str,
int  len_f 
)

Create C string from FORTRAN string.

Parameters:
f_str I pointer to FORTRAN string
c_str O buffer for receiving C string
len_f I length of FORTRAN string
Returns:
error status: always CTA_OK (no internal error check)

Generated on 4 Mar 2014 for OpenDA by  doxygen 1.6.1