Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/hpcgap/extern/gc/extra/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 987 B image not shown  

Quelle  symbian.cpp   Sprache: C

 

#include <e32cmn.h>
#include <e32std.h>
#include <f32file.h>
#include <aknutils.h>
#include <stdlib.h>
#include <string.h>

extern "C" {

int GC_get_main_symbian_stack_base()
{
    TThreadStackInfo aInfo;
    TInt err = RThread().StackInfo(aInfo);
    if ( !err )
        {
        return aInfo.iBase;
        }
    else
        {
        return 0;
        }
}

char* GC_get_private_path_and_zero_file()
{
    // always on c: drive
    RFs fs;
    fs.Connect();
    fs.CreatePrivatePath( EDriveC );
    TFileName path;
    fs.PrivatePath( path );
    fs.Close();
    _LIT( KCDrive, "c:" );
    path.Insert( 0, KCDrive );


    //convert to char*, assume ascii
    TBuf8<KMaxFileName> path8;
    path8.Copy( path );
    _LIT8( KZero8, "zero" );
    path8.Append( KZero8 );

    size_t size = path8.Length() + 1;
    char* copyChar = (char*) malloc( size );
    if (copyChar)
        memcpy( copyChar, path8.PtrZ(), size );

    return copyChar; // ownership passed
}

/* extern "C" */

Messung V0.5
C=93 H=97 G=94

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.