Displaying 20 results from an estimated 146 matches for "_snprintf".
Did you mean:
snprintf
2002 Feb 27
1
anyone compile source on Mac OS X?
.../getnameinfo.o
zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o
zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o zlib/zutil.o
zlib/adler32.o popt/findme.o popt/popt.o popt/poptconfig.o
popt/popthelp.o popt/poptparse.o
/usr/bin/ld: warning multiple definitions of symbol _snprintf
lib/snprintf.o definition of _snprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(snprintf.o) definition of _snprintf
/usr/bin/ld: warning multiple definitions of symbol _vsnprintf
lib/snprintf.o definition of _vsnprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(vsnprintf.o) defi...
2013 Mar 17
1
Patch to add Unicode filename support for win32 flac
...erywhere else.
>
> Don't do that, it leaks into the system headers and breaks mingw if
> FLAC_USE_FOPEN_UTF8 is defined.
>
> Call the wrappers directly instead of using a macro.
+1
Yep, I prefer not to have too much #ifdef hackery.
In my recent replacement of all the sprintf/_snprintf stuff, I relaced all the
calls with a call to flac_snprintf() and localised #ifdef hackery to the
implementation of that function.
2013 Jul 23
0
[LLVMdev] [Patch] WinCOFFObjectWriter: fix for storing pointer to string table in header name field
...Kleckner wrote:
>
>> Is there a problem if the string is not null terminated? If not, you can
>> snprintf it right into place instead of doing sprintf+mempcy.
>>
>
> snprintf always null-terminates (and truncates if there's not enough
> space).
Nuh uh: "The _snprintf function formats and stores count or fewer
characters in buffer, and appends a terminating null character if the
formatted string length is strictly less than count characters."
http://msdn.microsoft.com/en-us/library/2ts7cx93(v=vs.100).aspx
Please don't assume snprintf always null termin...
2013 Jul 23
4
[LLVMdev] [Patch] WinCOFFObjectWriter: fix for storing pointer to string table in header name field
On 23.07.2013 18:43, Reid Kleckner wrote:
> Is there a problem if the string is not null terminated? If not, you can
> snprintf it right into place instead of doing sprintf+mempcy.
snprintf always null-terminates (and truncates if there's not enough space).
-Nico
2013 Mar 18
0
flac-dev Digest, Vol 100, Issue 42
...at, it leaks into the system headers and breaks mingw if
> > FLAC_USE_FOPEN_UTF8 is defined.
> >
> > Call the wrappers directly instead of using a macro.
>
> +1
>
> Yep, I prefer not to have too much #ifdef hackery.
>
> In my recent replacement of all the sprintf/_snprintf stuff, I relaced all
> the
> calls with a call to flac_snprintf() and localised #ifdef hackery to the
> implementation of that function.
>
> >From a patch cleanliness POV, I like to see the new functionality added in
> one patch and a separate patch to change all the old functi...
2006 Oct 07
1
Compiling CVS in VC++ 6.0
Hello,
Apologies if this has been done before. I just joined the list as
this has bugged me for a while.
I can compile FLAC 1.1.2 using Visual C++ 6.0 with no problems.
However, when I try to compile the CVS source I get:
Linking...
utils.obj : error LNK2001: unresolved external symbol _snprintf
grabbag_static.lib(stream_decoder.obj) : error LNK2001: unresolved
external symbol _FLAC__lpc_restore_signal_asm_ia32_mmx
grabbag_static.lib(stream_decoder.obj) : error LNK2001: unresolved
external symbol _FLAC__lpc_restore_signal_asm_ia32
grabbag_static.lib(stream_encoder.obj) : error LNK2001: unr...
2002 Nov 15
0
building rsync on MacOSX 10.2.2
...mdfour.o lib/permstring.o zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o zlib/zutil.o zlib/adler32.o popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o popt/poptparse.o
ld: warning multiple definitions of symbol _snprintf
lib/snprintf.o definition of _snprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(snprintf.So) definition of _snprintf
ld: warning multiple definitions of symbol _vsnprintf
lib/snprintf.o definition of _vsnprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(vsnprintf.So) definition...
2013 Mar 14
4
snprintf and MS Visual Studio
Hi all,
There are a bunch of sprintf calls in the FLAC code base and I'd like
to replace them with calls to snprintf but I know that can cause
problems with at least some versions of Visual Studio.
Whats the current state of play in this regard?
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
2017 Nov 03
1
[PATCH] Check for _WIN32 instead of WIN32 in preprocessor checks
...IN32
+# ifdef _WIN32
# include <malloc.h>
# else
# ifdef HAVE_ALLOCA_H
diff --git a/src/skeleton.h b/src/skeleton.h
index f07d7a3e..1559f8f5 100644
--- a/src/skeleton.h
+++ b/src/skeleton.h
@@ -10,7 +10,7 @@
extern "C" {
#endif
-#ifdef WIN32
+#ifdef _WIN32
#define snprintf _snprintf
#endif
diff --git a/tmv/config.h b/tmv/config.h
index ea7abe1d..df61d4d0 100644
--- a/tmv/config.h
+++ b/tmv/config.h
@@ -4,7 +4,7 @@
#define USE_COMPACT_KISS_FFT
//#define USE_KISS_FFT
-#ifdef WIN32
+#ifdef _WIN32
//#define FIXED_POINT
--
2.13.6 (Apple Git-96)
2013 Mar 15
2
snprintf and MS Visual Studio
Christoph Terasa wrote:
> Since MS refuses to support C99, the common practice is to use either
>
> sprintf_s:
> http://msdn.microsoft.com/en-us/library/ce3zzk1k(v=VS.80).aspx
> _snprintf_s:
> http://msdn.microsoft.com/de-de/library/f30dzcf6(v=VS.80).aspx
>
> The former can be used as a drop-in replacement of snprintf via a
> define, the latter takes an additional argument count which can limit
> the bytes written to the buffer additionally.
Hmm, the first can be...
2008 Nov 04
1
R 2.8.0 compilation...
...ERN_USRSTACK sysctl is supported... no
checking for cached Java settings... no
checking for Fortran flag to compile .f90 files... none
checking for Fortran flag to compile .f95 files... none
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking for CFPreferencesCopyAppValue... (cached) no
checking for CFLocaleCopyCurrent... (cached) no
checking whether included gettext is requested... no
Can anybody help to explain how these happen?
Regards
JIA
-----
Welcome...
2003 Apr 29
6
Connection refused
I've added the:
/etc/services
/etc/inetd
entries as well as
/etc/rsync.conf
with the contents:
[io]
path = //Volumes/Mac_OS_X/Library/WebServer/iolanguage.com/Io
comment = iolanguage source code
But I get this error:
% rsync -rvR --progress localhost:/ .
localhost.dekorte.com: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error:
2013 Mar 14
0
snprintf and MS Visual Studio
...t can cause
> problems with at least some versions of Visual Studio.
>
> Whats the current state of play in this regard?
>
> Erik
Since MS refuses to support C99, the common practice is to use either
sprintf_s:
http://msdn.microsoft.com/en-us/library/ce3zzk1k(v=VS.80).aspx
_snprintf_s:
http://msdn.microsoft.com/de-de/library/f30dzcf6(v=VS.80).aspx
The former can be used as a drop-in replacement of snprintf via a
define, the latter takes an additional argument count which can limit
the bytes written to the buffer additionally.
DO NOT use
_snprintf:
http://msdn.microso...
2013 Mar 15
0
snprintf and MS Visual Studio
...09 PM, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:
> Christoph Terasa wrote:
>
>> Since MS refuses to support C99, the common practice is to use either
>>
>> sprintf_s:
>> http://msdn.microsoft.com/en-us/library/ce3zzk1k(v=VS.80).aspx
>> _snprintf_s:
>> http://msdn.microsoft.com/de-de/library/f30dzcf6(v=VS.80).aspx
>>
>> The former can be used as a drop-in replacement of snprintf via a
>> define, the latter takes an additional argument count which can limit
>> the bytes written to the buffer additionally.
&g...
2013 Apr 11
0
No subject
...admin.c
===================================================================
--- src/admin.c (revision 19073)
+++ src/admin.c (working copy)
@@ -39,6 +39,9 @@
#include "logging.h"
#include "auth.h"
+
+#include "valgrind/memcheck.h"
+
#ifdef _WIN32
#define snprintf _snprintf
#endif
@@ -470,9 +473,11 @@
break;
case COMMAND_TRANSFORMED_STATS:
command_stats(client, NULL, TRANSFORMED);
+ VALGRIND_DO_LEAK_CHECK;
break;
case COMMAND_TRANSFORMED_LIST_MOUNTS:
command_list_mounts(client, TRANSFORM...
2009 Apr 26
0
Compiling dovecot-sieve-1.1.6 against dovecot-1.1.14
...std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-
declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-
function-cast -DENABLE_REGEX -o sievec sievec.o map.o
imparse.o ./.libs/libsieve.a /Users/BB/Temp/dovecot-1.1.14/src/lib/
liblib.a
ld: Undefined symbols:
_printf$LDBLStub
_snprintf$LDBLStub
_sprintf$LDBLStub
_fprintf$LDBLStub
make[3]: *** [sievec] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
This is the top of config.log. Please let me know if you'd like to
see any additional information.
hostname = G520X2....
2020 Apr 01
0
[ANNOUNCE] libnftnl 1.1.6 release
...udata: add NFTNL_UDATA_SET_*TYPEOF* definitions
udata: support for TLV attribute nesting
src: add nftnl_*_{get,set}_array()
chain: add NFTNL_CHAIN_FLAGS
set_elem: missing set and build for NFTNL_SET_ELEM_EXPR
set: support for NFTNL_SET_EXPR
expr: masq: revisit _snprintf()
expr: nat: snprint flags in hexadecimal
Revert "bitwise: add support for passing mask and xor via registers."
include: update nf_tables.h.
build: libnftnl 1.1.6 release
Phil Sutter (7):
tests: flowtable: Don't check NFTNL_FLOWTABLE_SIZE
flowtable...
2016 May 30
0
[ANNOUNCE] libnftnl 1.0.6 release
...support
expr: add dup expression support
expr: dup: fix missing space in text output
expr: limit: add support for flags
expr: add forward expression
rule: fix leaks in NFTNL_RULE_USERDATA
libnftnl: allow any set name length
src: remove unnecessary inline in _snprintf functions
src: missing static in several array definitions
chain: missing constification of _get() functions
include: refresh nf_tables.h cache copy
build: update LIBVERSION to prepare a new release
Patrick McHardy (4):
payload: add payload mangling support
trac...
2013 Mar 17
3
Patch to add Unicode filename support for win32 flac
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 17.03.2013 18:55, JonY wrote:
> On 3/17/2013 18:37, Erik de Castro Lopo wrote:
>> JonY wrote:
>>
>>> On 3/17/2013 10:33, Janne Hyv?rinen wrote:
>>>> Here's a patch that makes MSVC compiled flac.exe able to use
>>>> wildcards and encode/decode files with Unicode characters in
>>>>
2007 Mar 06
1
Errors compiling flac in Visual Studio Express 2005
...'chmod'
5> Message: 'The POSIX name for this item is deprecated. Instead, use
the ISO C++ conformant name: _chmod. See online help for details.'
5>c:\greenhouse\workspace\soundio\tool\flac_1.1.3\main\flac-1.1.3\src\share\grabbag\replaygain.c(104)
: warning C4996: '_snprintf' was declared deprecated
5> c:\program files\microsoft visual studio 8\vc\include\stdio.h(339)
: see declaration of '_snprintf'
7>utf8.c
5> Message: 'This function or variable may be unsafe. Consider using
_snprintf_s instead. To disable deprecation, use _CR...