C pointer in c-sharp, how to convert

Rinaldo 376 Reputation points
2022-06-26T03:00:13.443+00:00

How do I convert pointer to c# language to convert a C source to C#,

the code to convert

char *line  
 public static int parseaddress(char *line, fidaddr fid, char wild)  
  
ffurther on'  
  
line++;  
char symbol = *line  

How can it be a double ++ before the pointer?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,153 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,441 questions
0 comments No comments
{count} votes

2 additional answers

Sort by: Most helpful
  1. Rinaldo 376 Reputation points
    2022-06-26T06:24:43.04+00:00

    Hi @Castorix31
    I get strange enoufhg the error Severity Code Description Project File Line Suppression State
    Error CS0023 Operator '++' cannot be applied to operand of type 'string' WinDos D:\Users\Rinaldo\Documents\Visual Studio 2022\

    string line
    line++ does not work

    1 person found this answer helpful.

  2. Rinaldo 376 Reputation points
    2022-06-26T07:13:32.387+00:00

    Hi @Castorix31

    I have indexed the string like: symbol = line[index++];
    now another pointer question.

    How to pass this
    misc.getnum(&transport, &line)

    You are great