🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #102

string pointer trouble

#102
From: morano
Date: Thu, 22 Nov 2001 10:47
11 lines
1507 bytes
my function computes some unsigned integer from a string pointer.
char *string = "text"; then my function returns 54750. as an integer.

Now i want to append this integer to the string using strcat from string.h,
but how can i translate this integer value to ascii character values ?

And is there a way i can let char * point to HEX value and it will
internally translate it to ascii char ??


Thanks
Technical Details
Message-ID: <9tikso$9od2@news-dxb.emirates.net.ae>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!nycmny1-snf1.gtei.net!news.gtei.net!news-dxb.emirates.net.ae!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10ddee,17778c19d5318f29,start
X-Google-Attributes: gid10ddee,public
X-Google-Thread: 1014db,17778c19d5318f29,start
X-Google-Attributes: gid1014db,public
X-Google-Thread: 109fba,17778c19d5318f29,start
X-Google-Attributes: gid109fba,public
X-Google-Thread: 10d4ba,17778c19d5318f29,start
X-Google-Attributes: gid10d4ba,public
X-Google-ArrivalTime: 2001-11-22 02:45:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!nycmny1-snf1.gtei.net!news.gtei.net!news-dxb.emirates.net.ae!not-for-mail
From: "morano" <alomrani@emirates.net.ae>
Newsgroups: att.lang.c++,comp.lang.c,comp.lang.c++,no.it.programmering.c
Subject: string pointer trouble
Date: Thu, 22 Nov 2001 14:47:54 +0400
Organization: EIM
Lines: 14
Message-ID: <9tikso$9od2@news-dxb.emirates.net.ae>
NNTP-Posting-Host: 217.164.251.21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200