Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Getting station name

Featured Replies

  • Commercial Member

Ok, I'm a bit stumped.This code:if (HSI_STATION_NAMEvar.var_value.p) { strcpy(hsi_station_name,HSI_STATION_NAMEvar.var_value.p); }...crashes.Any "C" gauges gurus have a suggestion or know what I'm doing wrong?

Ed Wilson

Mindstar Aviation
My Playland - I69

What variable type is "hsi_station_name"?Long time ago, but I used sprintf(pelement->string,"%s",HSI_STATION_NAMEvar.var_value.d); the last time I printed IDs to ELEMENT_STRINGsArne Bartels

At least char hsi_station_name[5]="";four digits+trailing zero. A char is only one char and the average ID is longer then one char. ...var_value.d or ...var_value.p doesn't make much difference, both works, but .p might be more logical. Actually all var_value.... behave the same with the exception of var_value.n.Arne Bartels

  • Author
  • Commercial Member

Yep... thanks Arne... thought my feeble mind had missed something. ;)I don't do a whole lot of C programming, almost all my work is in the Delphi area... so I tend to 'forget' how to use C from time to time. LOL

Ed Wilson

Mindstar Aviation
My Playland - I69

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.