imsc_int32_t imsc_wsprintf(
OUT imsc_wchar_t *s,
IN imsc_wchar_t *format,
...)
{
va_list ap;
imsc_int32_t dNumBytes;
va_start(ap, format);
dNumBytes = swprintf(s,form at, ap);
va_end(ap);
return dNumBytes;
}
imsc_int32_t imsc_sprintf(
OUT imsc_char_t *s,
IN imsc_char_t *format,
...)
{
va_list ap;
imsc_int32_t dNumBytes;
va_start(ap, format);
dNumBytes = sprintf(s,forma t, ap);
va_end(ap);
return dNumBytes;
}
c:\port\strings \source\src\ims c_strings.c(135 ) : warning C4047: 'function' : 'size_t' differs in levels of indirection from 'const imsc_char_t *'
c:\port\strings \source\src\ims c_strings.c(135 ) : warning C4024: 'sprintf_s' : different types for formal and actual parameter 2
c:\port\strings \source\src\ims c_strings.c(520 ) : warning C4047: 'function' : 'size_t' differs in levels of indirection from 'imsc_wchar_t *'
c:\port\strings \source\src\ims c_strings.c(520 ) : warning C4024: 'swprintf' : different types for formal and actual parameter 2
c:\port\strings \source\src\ims c_strings.c(520 ) : warning C4133: 'function' : incompatible types - from 'va_list' to 'const wchar_t *'
1 3998
imsc_int32_t imsc_wsprintf(
OUT imsc_wchar_t *s,
IN imsc_wchar_t *format,
...)
{
va_list ap;
imsc_int32_t dNumBytes;
va_start(ap, format);
dNumBytes = swprintf(s,form at, ap);
va_end(ap);
return dNumBytes;
}
imsc_int32_t imsc_sprintf(
OUT imsc_char_t *s,
IN imsc_char_t *format,
...)
{
va_list ap;
imsc_int32_t dNumBytes;
va_start(ap, format);
dNumBytes = sprintf(s,forma t, ap);
va_end(ap);
return dNumBytes;
}
c:\port\strings \source\src\ims c_strings.c(135 ) : warning C4047: 'function' : 'size_t' differs in levels of indirection from 'const imsc_char_t *'
c:\port\strings \source\src\ims c_strings.c(135 ) : warning C4024: 'sprintf_s' : different types for formal and actual parameter 2
c:\port\strings \source\src\ims c_strings.c(520 ) : warning C4047: 'function' : 'size_t' differs in levels of indirection from 'imsc_wchar_t *'
c:\port\strings \source\src\ims c_strings.c(520 ) : warning C4024: 'swprintf' : different types for formal and actual parameter 2
c:\port\strings \source\src\ims c_strings.c(520 ) : warning C4133: 'function' : incompatible types - from 'va_list' to 'const wchar_t *'
Hi and welcome to TSDN. I'll move this to the C forum.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Michael R Seefelt |
last post by:
I have written a simple C-program that loads a Python Function that
connects to a PostgreSQL database> When I only load and execute the
Python function all works OK. If I call the Python function a second
time I get the following: Called PyObject_CallObject Traceback (most
recent call last):
File
"/home/mike/src/arthur/query_server/query_analyzer/Query_Analyzer.py",
line 25, in processQuery
from pyPgSQL import PgSQL
File...
|
by: Yodai |
last post by:
Hi all....
I have a little problem that's driving me nuts. I can't seem to make any
sense of it. I have this small webserver that substitutes some data from a
page when finds a substitution string. I all works fine, even the sprintf,
when I write numbers. But if I want to write a character string, it all goes
wrong.
I am trying to print "over" on the pointer Key on a function that looks
like this (this is only an extract of the real...
|
by: Yodai |
last post by:
Hi all.... I am trying to reduce the code of this function and I presume
there's a way to do it through a loop, buit I can't figure out how. This is
what I got: an embedded processor with a mini webserver running on it, Then
I have a function that substitutes dinamicaly some special codes that I've
spread through the webpage with information that is being written onto my
RAM memory by an external processor. So what I do is: I define the...
|
by: Yodai |
last post by:
Hi all.... I am trying to reduce the code of this function and I presume
there's a way to do it through a loop, buit I can't figure out how. This is
what I got: an embedded processor with a mini webserver running on it, Then
I have a function that substitutes dinamicaly some special codes that I've
spread through the webpage with information that is being written onto my
RAM memory by an external processor. So what I do is: I define the...
|
by: ypjofficial |
last post by:
Hello All,
To use sprintf function we have to first create a char * and assign
some memory to it or we have to fixed memory sized array.
eg.
char str;//or it can be
//char * str =(char *)malloc(512);
int d=100;
float f=2.22;
| |
by: ctara_shafa |
last post by:
Hi,
I have a following problem: I'm creating a list and one of the fields
should contain the date. Firstly I ask the user for the year, month and
day and then I'd like to collect all this data in one field. To do this
I tried to concatenate those 3 numbers into one using strcat. A piece
of code is as follows
/*function to enter the date*/
char * date (void)
{
|
by: Henryk |
last post by:
Hey there,
I have some problems with the following code snippet on a Virtex-4
PowerPC with a GCC based compiler
char chData;
sprintf(&chData, "%+05.0f", -0.038f); --I get "-000" ???
sprintf(&chData, "%+05.0f", -0.380f); --I get "-000" ???
sprintf(&chData, "%+05.0f", -3.800f); --I get "-0004" ok
|
by: Event Horizon |
last post by:
Hi,
I'm trying to add an simple upload applet to shopping cart script. My new
applet form sends all needed post fields ( quantity, product, etc... )
but the "file" post field is hardcoded in applet.
Shop script works with :
<input type="file" name="id"/>
but not with applet's:
<input type="file" name="SourceFile_1"/>
I just cannot figure out how to fix this :(
|
by: srbakshi |
last post by:
Hey all,
I'm stuck with the following:
The mysql_real_escape_string(conn, to, from, strlen(from)) function does not return the escaped string. So how can I go about writing a wrapper for it so that it RETURNS the 'to' string which in turn helps me fill out a query in the following manner using sprintf:
unescaped_query = "INSERT into MYTABLE values ('%s', '%s')";
sprintf(escaped_query, unescaped_query, wrapper(<string argument no.1...
|
by: nwclark |
last post by:
I am a noobie so pleas bear with me..
I am trying to link a image to a MYSQL variable.
I have user photos that i would like to link this page. So far I created an image upload and renamed the imaged to the username.jpg. Figured it would be easy to then link but nothing seems to be working.
Here is the total code..
<?php require_once('../Connections/JMI10.php'); ?><?php require_once('../Connections/JMI10.php'); ?><?php...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |