The R Project SVN R

Rev

Rev 17744 | Rev 18264 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17744 Rev 17764
Line 787... Line 787...
787
    str[0] = 0;
787
    str[0] = 0;
788
  return dopr(str, count, fmt, args);
788
  return dopr(str, count, fmt, args);
789
}
789
}
790
#endif /* !HAVE_VSNPRINTF */
790
#endif /* !HAVE_VSNPRINTF */
791
 
791
 
792
#ifndef HAVE_SNPRINTF
-
 
793
/* VARARGS3 */
-
 
794
#ifdef HAVE_STDARGS
-
 
795
int snprintf (char *str,size_t count,const char *fmt,...)
-
 
796
#else
-
 
797
int snprintf (va_alist) va_dcl
-
 
798
#endif
-
 
799
{
-
 
800
#ifndef HAVE_STDARGS
-
 
801
  char *str;
-
 
802
  size_t count;
-
 
803
  char *fmt;
-
 
804
#endif
-
 
805
  VA_LOCAL_DECL;
-
 
806
  int total;
-
 
807
    
-
 
808
  VA_START (fmt);
-
 
809
  VA_SHIFT (str, char *);
-
 
810
  VA_SHIFT (count, size_t );
-
 
811
  VA_SHIFT (fmt, char *);
-
 
812
  total = vsnprintf(str, count, fmt, ap);
-
 
813
  VA_END;
-
 
814
  return total;
-
 
815
}
-
 
816
#endif /* !HAVE_SNPRINTF */
-
 
817
#endif /* !HAVE_SNPRINTF || !HAVE_VSNPRINTF */
792
#endif /* !HAVE_SNPRINTF || !HAVE_VSNPRINTF */
818
 
793