Search Results: Sprintf


C file input/output
Minggu, 2026-08-02 11:37:15

a file stream or a buffer using variable argument list printf fprintf sprintf snprintf wprintf fwprintf swprintf Prints formatted byte/wchar_t output...

Click to read more »
Printf
Jumat, 2026-07-03 03:43:56

of standard output. sprintf writes to a string buffer instead of standard output. snprintf provides a level of safety over sprintf since the caller provides...

Click to read more »
String interpolation
Jumat, 2026-07-24 14:38:50

can be approximated using fmt.Sprintf(). import "fmt" func main() { // message is of type string message := fmt.Sprintf("My name is %s and I am %d years...

Click to read more »
Comparison of programming languages (string functions)
Kamis, 2026-08-13 00:11:24

$%2f", "pen", 19.99); // returns "My pen costs $19.99" # Examples in Raku sprintf "My %s costs \$%.2f", "pen", 19.99; # returns "My pen costs $19.99" 1.fmt("%04d");...

Click to read more »
Hexadecimal
Jumat, 2026-08-14 21:03:35

and The Open Group (2013) [2001]. "dprintf, fprintf, printf, snprintf, sprintf – print formatted output". The Open Group Base Specifications (Issue 7...

Click to read more »
D-Link
Senin, 2026-06-15 11:27:18

However, they've added another sprintf to the code before the call to access; their patch to prevent an unauthenticated sprintf stack overflow includes a new...

Click to read more »
Octree
Selasa, 2026-07-07 13:48:37

imshow(Img) title(sprintf('Original %d color image', size(unique(pts,'rows'), 1))) subplot(1, 2, 2), imshow(ImgIdx, ImgMap) title(sprintf('Octree-quantized...

Click to read more »
SQL injection
Selasa, 2026-06-02 14:09:05

mysqli('hostname', 'db_username', 'db_password', 'db_name'); $query = sprintf("SELECT * FROM `Users` WHERE UserName='%s'", $mysqli->real_escape_string($username)...

Click to read more »
Memcached
Minggu, 2026-07-19 15:03:53

" * This is not mandatory, but is recommended. */ string hashKey = sprintf(":xyz_data:%d:%d", seed, key) memcached_set(hashKey, value) /* "fetch_entry...

Click to read more »
GNU Octave
Sabtu, 2026-08-15 10:48:04

"Multiple"); if (ok == 1) msgbox ("You selected:"); for i = 1:numel (sel) msgbox (sprintf ("\t%s", my_options{sel(i)})); endfor else msgbox ("You cancelled."); endif...

Click to read more »
Scientific notation
Jumat, 2026-08-21 03:02:34

and The Open Group (2013) [2001]. "dprintf, fprintf, printf, snprintf, sprintf – print formatted output". The Open Group Base Specifications (Issue 7...

Click to read more »
C++ input/output library
Selasa, 2026-08-04 03:01:38

Retrieved 2 August 2026. cppreference.com. "std::printf, std::fprintf, std::sprintf, std::snprintf". cppreference.com. cppreference.com. cppreference.com....

Click to read more »
Pruning (morphology)
Rabu, 2025-01-15 01:43:51

subplot(1,2,1); imshow(b_img_skel); title(sprintf('Image Skeleton')); subplot(1,2,2); imshow(b_img_spur); title(sprintf('Skeleton Image Pruned')); In the MATLAB...

Click to read more »
Cyclone (programming language)
Senin, 2026-04-06 20:58:58

) Consider the following code, in C: char* itoa(int i) { char buf[20]; sprintf(buf, "%d", i); return buf; } The function itoa allocates an array of chars...

Click to read more »
Raku rules
Rabu, 2025-07-30 19:58:29

to define Perl's sprintf string formatting notation. Outside of this namespace, you could use these rules like so: if / <Str::SprintfFormat::format_token>...

Click to read more »
Option type
Selasa, 2026-07-07 20:46:44

'a option = None | Some of 'a. let showValue = Option.fold (fun _ x -> sprintf "The value is: %d" x) "No value" let full = Some 42 let empty = None showValue...

Click to read more »
Message Passing Interface
Kamis, 2026-05-28 18:39:53

processes */ for (other_rank = 1; other_rank < num_procs; other_rank++) { sprintf(buf, "Hello %i!", other_rank); MPI_Send(buf, 256, MPI_CHAR, other_rank...

Click to read more »
Windows Native API
Kamis, 2026-07-30 20:08:48

that are needed for a very basic C runtime execution, such as strlen(), sprintf(), memcpy() and floor(). Other common procedures like malloc(), printf()...

Click to read more »
String literal
Selasa, 2026-06-30 07:31:12

"Can you hear me?" + CHR$(34) In C, a similar facility is available via sprintf and the %c "character" format specifier, though in the presence of other...

Click to read more »
Discrete Laplace operator
Minggu, 2026-08-16 04:30:04

the results and write to GIF file imagesc(Phi); caxis([0, 10]); title(sprintf('Diffusion t = %3f', t)); frame = getframe(1); im = frame2im(frame); [imind...

Click to read more »
JoCaml
Rabu, 2025-01-08 14:12:39

put("Tea") ;; (* give: drink Join.chan *) def refund(v) = let s = Printf.sprintf "Refund %d" v in put(s) ;; (* refund: int Join.chan *) let new_vending...

Click to read more »
Return-to-libc attack
Rabu, 2026-03-04 05:52:43

loaded in the position-independent code (e.g., system@plt, execve@plt, sprintf@plt, strcpy@plt). Address space layout randomization (ASLR) makes this...

Click to read more »
International Obfuscated C Code Contest
Sabtu, 2026-06-13 05:37:01

/l*d; X+=( d*l-T/S *(.19*E +a *.64+J/1e3 )-M* v +A* Z)*_; l += K *_; W=d; sprintf(f, "%5d %3d" "%7d",p =l /1.7,(C=9E3+ O*57.3)%0550,(int)i); d+=T*(.45-14/l*...

Click to read more »
Perl 5 version history
Senin, 2026-06-01 17:18:25

Initialisation of aggregate state variables Full-size inode numbers The sprintf %j format size modifier is now available with pre-C99 compilers Close-on-exec...

Click to read more »
Format (Common Lisp)
Rabu, 2025-06-25 11:41:47

some other programming languages, such as C's printf for console output, sprintf for string formatting, and fprintf for file writing. The multitude of destination...

Click to read more »
OpenBSD security features
Jumat, 2026-03-13 15:32:54

when unsafe string manipulation functions, such as strcpy, strcat, or sprintf, are found. All occurrences of these functions in the OpenBSD source tree...

Click to read more »
Comparison of programming languages (object-oriented programming)
Minggu, 2026-04-26 05:26:55

copy x x = y Hashtbl.hash x Oo.id x F# string x or x.ToString() or sprintf "%O" x sprintf "%A" x x.Clone() x = y or x.Equals(y) compare x y or x.CompareTo(y)...

Click to read more »
Code audit
Kamis, 2026-05-14 03:23:21

exist due to the use of: Non-bounds-checking functions (e.g., strcpy, sprintf, vsprintf, and sscanf) that could lead to a buffer overflow vulnerability...

Click to read more »
Comparison of programming languages (basic instructions)
Jumat, 2026-04-17 13:09:36

atoi(string); long = atol(string); float = atof(string); sprintf(string, "%i", integer); sprintf(string, "%f", float); Objective-C integer = [string intValue];...

Click to read more »
Plane wave expansion method
Rabu, 2026-08-19 09:58:30

freqs(:, idx), '.-') end hold off xlabel('Kz') ylabel('omega/c') title(sprintf('PBG of 1D DBR with d/a=%g, Epsr=%g', d / a, eps_r)) PWE expansions are...

Click to read more »
Perl language structure
Kamis, 2026-07-23 03:05:10

down, respectively. The number-to-string conversion of printf "%f" or sprintf "%f" round out even, use bankers' rounding. Perl also has a boolean context...

Click to read more »
UW IMAP
Jumat, 2026-06-12 14:59:48

instances of string functions which do not perform length-checking (such as sprintf) are still plentiful within the code... [According] to the attackability...

Click to read more »
PHP syntax and semantics
Jumat, 2026-08-07 18:57:43

done on strings delimited by single quotes. PHP also supports a C-like sprintf function. Code can be modularized into functions defined with keyword function...

Click to read more »
Wang BASIC
Minggu, 2026-02-01 10:01:53

to convert a number to a formatted string in a fashion analogous to C's sprintf. The POS function returns the index of a given character in a string; POS("HELLO...

Click to read more »
Join-pattern
Rabu, 2026-03-04 12:13:20

put("Tea") ;; (* serve: drinks Join.chan *) def refund(v) = let s = Printf.sprintf "Refund %d" v in put(s) ;; (* refund: int Join.chan *) let new_vending...

Click to read more »