Wolfgang Thallerfix PascalString.c test1b0b7252 years agoHistory
25 lines · 397 B · C
RawDownload
#include "Test.h" int main(void){    const unsigned char *pstr = "\pHello, world.";    const char *cstr = "Hello, world.";     if (pstr[0] != 13)    {        TEST_LOG_NO();        return 1;    }     for (int i = 0; cstr[i]; ++i)    {        if (cstr[i] != (char) pstr[i+1])        {            TEST_LOG_NO();            return 1;        }    }     TEST_LOG_OK();    return 0;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t