File: archdetect.c

package info (click to toggle)
hw-detect 1.71
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,140 kB
  • ctags: 64
  • sloc: sh: 1,153; makefile: 117; ansic: 12
file content (17 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <debian-installer/system/subarch.h>

int main(int argc, char *argv[])
{
        const char *subarch;

	if (!(subarch = di_system_subarch_analyze()))
 		return EXIT_FAILURE;

	printf("%s/%s\n", CPU_TEXT, subarch);

	return 0;
}