SURFEX v8.1
General documentation of Surfex
paddrs.c
Go to the documentation of this file.
1 #include <stdio.h>
2 
3 /*
4  * Used to get a string representation of an address from FORTRAN.
5  * Useful to generate unique ids.
6  */
7 
8 void paddrs_ (char * s, void * p, int slen)
9 {
10  int i, n = snprintf (s, slen, "%p", p);
11  for (i = n; i < slen; i++) s[i] = ' ';
12 }
ERROR in n
Definition: ecsort_shared.h:90
int snprintf(char *str, size_t size, const char *format,...)
Definition: endian.c:108
void paddrs_(char *s, void *p, int slen)
Definition: paddrs.c:8