11-29-2007
Quote:
Originally Posted by
madfox
now how to add crc which is hexadecimal with the string.
What format is the data in? What protocol do you use to exchange the data? You need to be much more specific.
So far all I can say from what you say is
memcpy(p+1+strlen(p),crc,sizeof(crc));
which I am sure is not what you are intending....
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
there is a message crc error when i install rethat 7.1
what is these message means ?
And why is my harddisk drive detected as hdc not hda ??
please do reply if you have any idea or guesses .
thanking you all
systen config :
intel P4
intel 845
256 SD
... (1 Reply)
Discussion started by: immanuelgangte
1 Replies
2. IP Networking
Hi,
Is there any way that i can directly take out the IP packet and see its contents.
Waiting for your answer ..............
Bye (4 Replies)
Discussion started by: manjunath
4 Replies
3. UNIX for Advanced & Expert Users
Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies
4. Solaris
I am getting this error when trying to unzip a file.gz . Anyone know how to resolve this ? (3 Replies)
Discussion started by: jxh461
3 Replies
5. Programming
Hi,
We have packet of size 144 bytes and wants to genrate & check CRC . Can u give the CRC code ? (3 Replies)
Discussion started by: namrata5
3 Replies
6. Solaris
Hi, I was working on the M3000 and I did a init 0, powered off the system during the weekend. When I tried to poweron today, the XSCF linux boot image keeps on rebooting and does not go to the login for XSCF access. The "Check" LED is on amber. Tried diagnosing but cant get the system up. Any help... (1 Reply)
Discussion started by: incredible
1 Replies
7. Programming
Good Evening,
I started working on the 17x17 4-colouring challenge, and I ran into a bit of an I/O snag.
It was an enormous headache to detect the differences in very similar 289-char strings.
Eventually, it made more sense to associate a CRC-Digest with each colouring.
After learning... (0 Replies)
Discussion started by: HeavyJ
0 Replies
8. SCO
Hi, (i'm sorry for my english)
I'm a problem on boot sco unix 5.0.5 open server.
this stop at "Checking protected password and checking subsystem databases"
(See this image )
I'm try this:
1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094
2) SCO: SCO Unix - Server hangs... (9 Replies)
Discussion started by: buji
9 Replies
9. AIX
(5 Replies)
Discussion started by: Vishal_dba
5 Replies
10. Shell Programming and Scripting
unzip -v gives CRC info of each file in a zip(in my case .EAR) file.
# unzip -v my-application.ear
Archive: my-application.ear
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies
LEARN ABOUT DEBIAN
string::crc32
CRC32(3pm) User Contributed Perl Documentation CRC32(3pm)
NAME
String::CRC32 - Perl interface for cyclic redundency check generation
SYNOPSIS
use String::CRC32;
$crc = crc32("some string");
$crc = crc32("some string", initvalue);
$somestring = "some string";
$crc = crc32($somestring);
open(SOMEFILE, "location/of/some.file");
$crc = crc32(*SOMEFILE);
close(SOMEFILE);
DESCRIPTION
The CRC32 module calculates CRC sums of 32 bit lenghts. It generates the same CRC values as ZMODEM, PKZIP, PICCHECK and many others.
Despite its name, this module is able to compute the checksum of files as well as strings.
EXAMPLES
$crc = crc32("some string");
results in the same as
$crc = crc32(" string", crc32("some"));
This is useful for subsequent CRC checking of substrings.
You may even check files:
open(SOMEFILE, "location/of/some.file");
$crc = crc32(*SOMEFILE);
close(SOMEFILE);
A init value may also been supplied in the above example.
AUTHOR
Soenke J. Peters <peters__perl@opcenter.de>
Please be so kind as to report any bugs/suggestions to the above address.
COPYRIGHT
CRC algorithm code taken from CRC-32 by Craig Bruce. The module stuff is inspired by a similar perl module called String::CRC by David
Sharnoff & Matthew Dillon. Horst Fickenscher told me that it could be useful to supply an init value to the crc checking function and so I
included this possibility.
The author of this package disclaims all copyrights and releases it into the public domain.
perl v5.14.2 2005-04-04 CRC32(3pm)