10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Asking for a Linux command line to
convert all files in current folder from UTF8 to ANSI, name unchanged.
Best Regards
Pei (3 Replies)
Discussion started by: jiapei100
3 Replies
2. Shell Programming and Scripting
wondering if anyone has any thoughts to convert the below thru a shell script
Convert decimal signalling point notation to ANSI point code notation
There is a site that does that conversion but i need to implement the solution in a shell script.....Thoughts....
OS: Solaris 9
... (4 Replies)
Discussion started by: aavam
4 Replies
3. Programming
I follow the description of wiki (Lamport's bakery algorithm - Wikipedia, the free encyclopedia), then implement that algorithm in C, but it doesn't work, Starving is still here, is the implementation worry?
Only print out:
Thread ID: 0 START!
Thread ID: 0 END!
Thread ID: 0 START!... (2 Replies)
Discussion started by: sehang
2 Replies
4. UNIX for Dummies Questions & Answers
1. I have a shell script which creates a file using cat command. How can i find what encoding the file follows (e.g. UTF8, ANSI)?
2. I want to convert that file to PC-ANSI format. How can i achieve that?
I tried using the echo $LANG command to find the default encoding. It says parameter not... (2 Replies)
Discussion started by: ssmallya
2 Replies
5. UNIX for Dummies Questions & Answers
:confused: Hi
i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error
Function i used it as
$ iconv -f UTF8 -t ANSI filename
Error iam getting is NOT Supported UTF8 to ANSI
please some help me out on... (9 Replies)
Discussion started by: rajreddy
9 Replies
6. UNIX for Advanced & Expert Users
:) Hi
i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error
Function i used it as
$ iconv -f UTF8 -t ANSI filename
Error iam getting is NOT Supported UTF8 to ANSI
please some help me out on this.........Let me... (1 Reply)
Discussion started by: rajreddy
1 Replies
7. Programming
I am a student. And need help on following program. I want to make a c program.
I have to scan a sentence and I have to interchange a word from that sentence.
Example: Scan the sentence is " Drilling machine and Milling machine " . Replace the word "machine" by "operation". And output should... (2 Replies)
Discussion started by: dhaval chevli
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I run into an error message like this
(Bundled]) cc: "flat.c", line 350: error 1705: Function prototypes are an ANSI feature.'
Also when trying to compile with -Aa or -Ae options I get
(Bundled) cc:warning 480: The -A option is available only with the C/ANSI C product; ignored.
Is that... (1 Reply)
Discussion started by: elenav
1 Replies
9. Programming
Dear All,
I have to develope some C functions in Unix for a Magic program. The original MSE code which compiles the attached C program uses a +z option, but the cc compiler don't know this. The complete command in the compiler script is 'cc -c -Aa +z myfile.c'. The warning message is 'The -z... (4 Replies)
Discussion started by: Frankie
4 Replies
10. Programming
To anyone that can answer this:
Are the differences great between the ANSI and K&R standard? What are some of the major differences between them??
-REM (1 Reply)
Discussion started by: REM
1 Replies
firestring_snprintf(3) Library Functions Manual firestring_snprintf(3)
NAME
firestring_snprintf - snprintf(3) provided as a replacement so programs can maintain ANSI C compliance
SYNOPSIS
#include <firestring.h>
-lfirestring
long firestring_snprintf(char * out, const size_t size, const char * const format, ...)
DESCRIPTION
firestring_snprintf() writes a maximum of size bytes to out based on the formatting rules specified in format and the further arguments
provided.
As snprintf(3) is not a ANSI C function, firestring_snprintf() is provided as a replacement for programs wishing to maintain ANSI C compli-
ance. It acts much like snprintf(3), except that it only uses single-letter format tags, and only supports a subset of the common formats.
Formats supported:
%s - char *
%d - int
%l - long
%u - unsigned int
%y - unsigned long
%g - signed long long
%o - unsigned long long
%f - double
%t - time_t (printed in ISO format)
%e - struct firestring_estr_t *
The %s type handles NULL values by displaying the string "(null)". All numeric types support zero padding through the standard %02d for-
mat.
RETURN VALUE
Returns the number of bytes written to out not including the trailing nil.
AUTHOR
Ian Gulliver <ian@penguinhosting.net>
SEE ALSO
libfirestring(3)
2003-05-15 firestring_snprintf(3)