You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
564 B
C
29 lines
564 B
C
#include <sys/time.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#ifdef LowerUnderscore
|
|
#define psi_c_diffadd psi_c_diffadd_
|
|
#endif
|
|
#ifdef LowerDoubleUnderscore
|
|
#define psi_c_diffadd psi_c_diffadd__
|
|
#endif
|
|
#ifdef LowerCase
|
|
#define psi_c_diffadd psi_c_diffadd
|
|
#endif
|
|
#ifdef UpperUnderscore
|
|
#define psi_c_diffadd PSI_C_DIFFADD_
|
|
#endif
|
|
#ifdef UpperDoubleUnderscore
|
|
#define psi_c_diffadd PSI_C_DIFFADD__
|
|
#endif
|
|
#ifdef UpperCase
|
|
#define psi_c_diffadd PSI_C_DIFFADD
|
|
#endif
|
|
|
|
void psi_c_diffadd(char *p1, char *p2, int *ret)
|
|
{
|
|
*ret = (int)(p2-p1);
|
|
return;
|
|
}
|