Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Is vsprintf() in Android valid ?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
GAI CHEW KAI

Posts: 117
Registered: 7/25/14
Is vsprintf() in Android valid ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 1, 2015 5:38 PM
I am currently using Embarcadero® C++Builder XE7 Version 21.0.17017.3725.

QUESTIONS:

1. If I included <stdio.h> under Android FM development, it is able to compile and run properly and but there is no"vsprintf()" under C:\Program Files (x86)\Embarcadero\Studio\15.0\include\android\...".
Therefore, if I omitted <stdio.h>, the compile error indicated "[bccaarm Error] mimos_generic.h(89): use of undeclared identifier 'vsprintf'"

It is valid under Android FM development although by enabling <stdio.h> routine below able to compile and link successfully ?

#include <stdio.h>

__inline int spf ( char* pbuf, int size, char* fmt, ... )
{
va_list argptr;
int cnt;

va_start( argptr, fmt );

cnt = vsprintf( pbuf, fmt, argptr );

va_end( argptr );

return ( cnt );
}

Please advise.

Edited by: GAI CHEW KAI on Mar 5, 2015 7:02 PM

Edited by: GAI CHEW KAI on Mar 5, 2015 7:04 PM

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02