Converting some C to PHP
Posted: Sun Apr 23, 2006 12:15 pm
feyd | Please use
the result from this math will be 404
THX
Madru
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi all,
can somebody give me a helping hand here, please?
I have the following C code and I am not able to convert this to PHP
[syntax="c"]
#include <stdio.h>
int main()
{
const int DC1 = 0x11;
const int ESC = 0x1b;
int BCC;
//BCC = (DC1,0x07+ESC+'G'+'R'+0+0+100+100);//%256;
BCC = (DC1+0x07+ESC+'G'+'R'+0+0+100+100);
printf("%d\n", BCC);
// printf("%d\n", BCC%256);
// return -1;
}
THX
Madru
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]