C function equivalent to PACK function in Perl 
Author Message
 C function equivalent to PACK function in Perl

Does anybody know of a function in C equivalent to PACK function in
Perl? Or is there a code snippet that does similar conversion?


Mon, 19 Jan 2004 05:32:42 GMT  
 C function equivalent to PACK function in Perl
Hi,


Quote:
> Does anybody know of a function in C equivalent to PACK function in
> Perl? Or is there a code snippet that does similar conversion?

What do you want it to do? Maybe sprintf is sufficient.

Daniel

--
IMO, anyway.

` { } \ | [ ] ' ~    :) ;) :/ :( <-- insert as needed
clc FAQ:    http://www.eskimo.com/~scs/C-faq/top.html



Mon, 19 Jan 2004 07:08:05 GMT  
 C function equivalent to PACK function in Perl
On Thu, 02 Aug 2001 01:08:05 +0200,

Quote:
>Hi,


>> Does anybody know of a function in C equivalent to PACK function in
>> Perl? Or is there a code snippet that does similar conversion?

>What do you want it to do? Maybe sprintf is sufficient.

Most struct in C are already in a format that you would use Perl pack
to create.  The sprintf function is more equivalent to unpack.  However,
the pack and unpack functions in perl has capabilities not found in
standard C such as BER encoding or uuencoding.

Villy



Mon, 19 Jan 2004 15:19:31 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. CGI in Perl calling C functions: env variable init issue

2. Help converting C xor function to Perl?

3. The perl eval function

4. Something like Perl's split function

5. Is there a C equivalent to Perl glob???

6. C equivalent of Perl's split?

7. dBase III Pack in DLL function

8. Wait Function equivalent

9. Equivalent of VB's CHR function in C#

10. VC++ function equivalents

11. Need macro equivalent for function

12. Sleep function, or equivalent

 

 
Powered by phpBB® Forum Software