~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to prim/table/libsrc/tbrowname.c

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
.VERSION
 
4
051012          last modif
 
5
*/
 
6
 
 
7
#include <tbldef.h>
 
8
#include <midas_def.h>
 
9
#include <macrogen.h>
 
10
#include <proto_tbl.h>
 
11
 
 
12
#include <stdio.h>
 
13
 
 
14
 
 
15
int getRowbyFrame(table,frame)
 
16
char table[60],frame[60];
 
17
{
 
18
int tid,row,icol;
 
19
 
 
20
tid = -1;
 
21
TCTOPN(table,F_I_MODE,&tid);
 
22
TCLSER(tid,"FILENAME",&icol);
 
23
(void) printf("frame:%s\n",frame);
 
24
TCESRC(tid,icol,frame,1,strlen(frame),1,&row);
 
25
(void) printf("row: %d\n",row);
 
26
TCTCLO(tid);
 
27
return(row);
 
28
}